Skip to content

Commit

Permalink
Merge pull request #19 from IliaSky/remove-windows-log
Browse files Browse the repository at this point in the history
Prevent logs in commandExistsWindowsSync. fix #18
  • Loading branch information
mathisonian authored Jun 18, 2018
2 parents 6ef128c + a4a0e2b commit c50c096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/command-exists.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ var commandExistsUnixSync = function(commandName, cleanedCommandName) {

var commandExistsWindowsSync = function(commandName, cleanedCommandName, callback) {
try {
var stdout = execSync('where ' + cleanedCommandName);
var stdout = execSync('where ' + cleanedCommandName, {stdio: []});
return !!stdout;
} catch (error) {
return false;
Expand Down

0 comments on commit c50c096

Please sign in to comment.