Skip to content
Myr

Merge pull request #332 from zhiyelee/fixexit

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

cherry-pick #260

authored by Zhiye Li · committed by Zhiye Li · parents d48cda9, 231a65f · Browse files · 2 files+8 added−0 removed
This commit

State

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

Diff stats

2 files+8 added−0 removed

  • tests:+6 added−0 removed
  • other:+2 added−0 removed

2 files+8 added−0 removed

modified:test/test.command.executableSubcommand.js+6 added
modified:index.js+2 added
479 unmodified lines
480 args.unshift(local);481 proc = spawn(process.execPath, args, { stdio: 'inherit'});482 }483484 proc.on('close', process.exit.bind(process));485 proc.on('error', function(err) {486 if (err.code == "ENOENT") {487 console.error('\n %s(1) does not exist, try --help\n', bin);488 } else if (err.code == "EACCES") {489 console.error('\n %s(1) not executable. try chmod or run with root\n', bin);490 }491 process.exit(1);492 });493494 this.runningCommand = proc;495};
541 unmodified lines