Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: shell.errorCode() honors shell.exit(code)
This changes shell.exit() to use a wrapper function. This is so that shell.errorCode() will have the correct error code after invoking shell.exit(code). This isn't normally relevant, however a caller may be listening for the exit status: ``` process.on('exit', code => { shell.exit(shell.errorCode()); }); ``` Issue #1013
- Loading branch information