Skip to content

Commit

Permalink
fix: use bin rather than localBin for subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Kendall committed Feb 11, 2016
1 parent 06f53af commit 33751b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ Command.prototype.executeSubCommand = function(argv, args, unknown) {
var proc;
if (process.platform !== 'win32') {
if (isExplicitJS) {
args.unshift(localBin);
args.unshift(bin);
// add executable arguments to spawn
args = (process.execArgv || []).concat(args);

Expand All @@ -534,7 +534,7 @@ Command.prototype.executeSubCommand = function(argv, args, unknown) {
proc = spawn(bin, args, { stdio: 'inherit', customFds: [0, 1, 2] });
}
} else {
args.unshift(localBin);
args.unshift(bin);
proc = spawn(process.execPath, args, { stdio: 'inherit'});
}

Expand Down

0 comments on commit 33751b4

Please sign in to comment.