"exit $?" raises TypeError on Ruby 2.0

This commit is contained in:
Jack Nagel 2014-06-10 11:33:17 -05:00
parent 7f10aa3b6e
commit 84cd9cc28f

View File

@ -90,9 +90,13 @@ def interactive_shell f=nil
Process.wait fork { exec ENV['SHELL'] }
unless $?.success?
if $?.success?
return
elsif $?.exited?
puts "Aborting due to non-zero exit status"
exit $?
exit $?.exitstatus
else
raise $?.inspect
end
end