Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Making temporary fix of the libuv bug on Windows more robust to avoid…
Browse files Browse the repository at this point in the history
… future breaks.

Close #392
Close #411
  • Loading branch information
henvic committed Sep 22, 2015
1 parent 799831e commit 535feb3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ exports.spawnSync = function (cmd, args, options) {
var exec;

logger.debug('spawnSync: ' + cmd + ' ' + args.join(' '));

if (process.platform == 'win32' && cmd !== 'git') {

exec = child_process.spawnSync(cmd, args, options);

if (exec.error && exec.error.code === 'ENOENT' && process.platform === 'win32') {
logger.debug('Invoking patched sapwnSync due to Windows\' libuv bug');
exec = child_process.spawnSync(cmd + '.cmd', args, options);
}
else {
exec = child_process.spawnSync(cmd, args, options);
}

return {
Expand Down

0 comments on commit 535feb3

Please sign in to comment.