diff options
| author | Jack Nagel | 2014-06-10 11:33:17 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-06-10 11:33:17 -0500 | 
| commit | 84cd9cc28f5dea30899d54bd457daeed93bc024f (patch) | |
| tree | 689071857f7b83a87a497b8da9739b28c68d7ca1 /Library/Homebrew/utils.rb | |
| parent | 7f10aa3b6ef5ec13f815ea215d6f6c735373bc86 (diff) | |
| download | brew-84cd9cc28f5dea30899d54bd457daeed93bc024f.tar.bz2 | |
"exit $?" raises TypeError on Ruby 2.0
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -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  | 
