1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-10 08:52:39 +01:00

Merge pull request #47 from aurelijus/master

JSHint linter issue on windows
This commit is contained in:
Evan Priestley 2012-07-30 04:54:21 -07:00
commit fca6f7549f

View file

@ -116,7 +116,8 @@ final class ArcanistJSHintLinter extends ArcanistLinter {
}
// Look for globally installed JSHint
list($err) = exec_manual('which %s', $bin);
$cmd = (phutil_is_windows()) ? 'where %s' : 'which %s';
list($err) = exec_manual($cmd, $bin);
if ($err) {
throw new ArcanistUsageException(
"JSHint does not appear to be installed on this system. Install it ".