Skip to content

Commit

Permalink
fix(cli): Fixed cli exit code for empty array
Browse files Browse the repository at this point in the history
Fixes #15
Before this fix the cli exited with status code 1 when getting an empty array.
Now it prints a message and exits with code 0.
  • Loading branch information
aklinkert committed Jan 23, 2017
1 parent 5996803 commit f0a6094
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ conventionalGithubReleaser({
console.error(err.toString());
process.exit(1);
}

if (0 === data.length) {
console.log('No GitHub releases created because no git tags available to work with.');
process.exit(0);
}

var allRejected = true;

Expand Down

0 comments on commit f0a6094

Please sign in to comment.