exit with code 2 when deps are up to date

This commit is contained in:
silverwind 2017-12-03 14:25:13 +01:00
parent f782ab0564
commit d6f36bb313
Signed by: silverwind
GPG Key ID: 2E62B41C93869443

@ -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);