Skip to content

Commit

Permalink
Exit with non-zero exit code on SIGINT (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitcloud authored and sindresorhus committed May 26, 2018
1 parent 24fa0cd commit 3f1c66e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli.js
Expand Up @@ -56,6 +56,11 @@ const cli = meow(`

updateNotifier({pkg: cli.pkg}).notify();

process.on('SIGINT', () => {
console.log('\nAborted!');
process.exit(1);
});

Promise
.resolve()
.then(() => {
Expand Down

0 comments on commit 3f1c66e

Please sign in to comment.