Skip to content
Myr

fix: use bin rather than localBin for subcommand

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Bryan Kendall · committed by Bryan Kendall · parent 06f53af · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:index.js+2 added-2 removed
523 unmodified lines
524525 var proc;526 if (process.platform !== 'win32') {527 if (isExplicitJS) {528 args.unshift(localBin);528 args.unshift(bin);529 // add executable arguments to spawn530 args = (process.execArgv || []).concat(args);531532 proc = spawn('node', args, { stdio: 'inherit', customFds: [0, 1, 2] });533 } else {534 proc = spawn(bin, args, { stdio: 'inherit', customFds: [0, 1, 2] });535 }536 } else {537 args.unshift(localBin);537 args.unshift(bin);538 proc = spawn(process.execPath, args, { stdio: 'inherit'});539 }540541 proc.on('close', process.exit.bind(process));
569 unmodified lines