Skip to content

Commit c50c096

Browse files
authored
Merge pull request #19 from IliaSky/remove-windows-log
Prevent logs in commandExistsWindowsSync. fix #18
2 parents 6ef128c + a4a0e2b commit c50c096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/command-exists.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ var commandExistsUnixSync = function(commandName, cleanedCommandName) {
8989

9090
var commandExistsWindowsSync = function(commandName, cleanedCommandName, callback) {
9191
try {
92-
var stdout = execSync('where ' + cleanedCommandName);
92+
var stdout = execSync('where ' + cleanedCommandName, {stdio: []});
9393
return !!stdout;
9494
} catch (error) {
9595
return false;

0 commit comments

Comments
 (0)