Return an error exit code if no exit code is provided by the command.
This commit is contained in:
parent
9888efdbc2
commit
720cc891ae
@ -36,5 +36,9 @@ if ARGV.delete("--profile")
|
||||
printer.print(STDERR, 0)
|
||||
exit exit_code
|
||||
else
|
||||
exit runner.call
|
||||
if exit_code = runner.call
|
||||
exit exit_code
|
||||
else
|
||||
exit 1
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user