diff options
| author | Jack Nagel | 2014-06-10 11:33:17 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-10 11:33:17 -0500 |
| commit | 9e5403ca349a20eae45a485c11f86f6284606822 (patch) | |
| tree | aed41fc8e0fba7188e90efe8342305425d86240d | |
| parent | eb1bfa48f782a26cdeb5ff6d22c2864c0392e5ba (diff) | |
| download | homebrew-9e5403ca349a20eae45a485c11f86f6284606822.tar.bz2 | |
"exit $?" raises TypeError on Ruby 2.0
| -rw-r--r-- | Library/Homebrew/utils.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index bb8b6d281..24d028ea0 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -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 |
