forked from silverwind/updates
exit with code 2 when deps are up to date
This commit is contained in:
parent
f782ab0564
commit
d6f36bb313
@ -58,7 +58,7 @@ Promise.all(deps.map(dep => got(`${url}${dep.name}`))).then(function(responses)
|
||||
|
||||
if (!results.length) {
|
||||
print("All packages are up to date.");
|
||||
process.exit(0);
|
||||
process.exit(2);
|
||||
} else if (!cli.flags.u && !cli.flags.update) {
|
||||
if (cli.flags.j || cli.flags.json) {
|
||||
print(results);
|
||||
|
Loading…
Reference in New Issue
Block a user