Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ function lernaCLI(argv, cwd) { | |
} | ||
|
||
// exit non-zero so the CLI can be usefully chained | ||
cli.exit(actual.code || 1, actual); | ||
cli.exit(actual.code > 0 ? actual.code : 1, actual); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
evocateur
Author
Member
|
||
}) | ||
.alias("h", "help") | ||
.alias("v", "version") | ||
|
@evocateur, if the exit code is "0", this will still return 1, this needs to be a >= comparison:
cli.exit(actual.code >= 0 ? actual.code : 1, actual);