Skip to content

Commit bdd1095

Browse files
committed
JT: fix the exit status
* Process::Status#to_i is just a the raw value and cannot be used as an exit code.
1 parent df10d7a commit bdd1095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool/jt.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def raw_sh(*args)
384384
else
385385
$stderr.puts "FAILED (#{status}): #{printable_cmd(args)}"
386386
$stderr.puts out if capture
387-
exit status.to_i
387+
exit(status.exitstatus || status.termsig || status.stopsig || 1)
388388
end
389389
end
390390

0 commit comments

Comments
 (0)