mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +01:00
Merge pull request #47 from aurelijus/master
JSHint linter issue on windows
This commit is contained in:
commit
fca6f7549f
1 changed files with 2 additions and 1 deletions
|
@ -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 ".
|
||||
|
|
Loading…
Reference in a new issue