Skip to content

Commit b86352b

Browse files
committed
Don't run grep command via full path.
* In git bash (at least) spaces in paths (yay) will totally break things.
1 parent 014ecc7 commit b86352b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/exit_test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ var async = require('async');
2727
var _which = require('which').sync;
2828
function which(command) {
2929
try {
30-
return _which(command);
30+
_which(command);
31+
return command;
3132
} catch (err) {
3233
return false;
3334
}

0 commit comments

Comments
 (0)