aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 826cf4c5c..7c8643a01 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -151,9 +151,9 @@ def interactive_shell(f = nil)
Process.wait fork { exec ENV["SHELL"] }
- return if $?.success?
- raise "Aborted due to non-zero exit status (#{$?.exitstatus})" if $?.exited?
- raise $?.inspect
+ return if $CHILD_STATUS.success?
+ raise "Aborted due to non-zero exit status (#{$CHILD_STATUS.exitstatus})" if $CHILD_STATUS.exited?
+ raise $CHILD_STATUS.inspect
end
module Homebrew
@@ -171,7 +171,7 @@ module Homebrew
exit! 1 # never gets here unless exec failed
end
Process.wait(pid)
- $?.success?
+ $CHILD_STATUS.success?
end
def system(cmd, *args)