Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tool/jt.rb
Original file line number Diff line number Diff line change
@@ -263,9 +263,11 @@ def raw_sh(*args)
elsif continue_on_failure
false
else
$stderr.puts "FAILED (#{$?}): #{printable_cmd(args)}"
if $? and $?.exitstatus
exit $?.exitstatus
status = $? unless capture
$stderr.puts "FAILED (#{status}): #{printable_cmd(args)}"

if status && status.exitstatus
exit status.exitstatus
else
exit 1
end

0 comments on commit c2ea997

Please sign in to comment.