diff options
| author | Mike McQuaid | 2017-06-12 16:16:37 +0100 |
|---|---|---|
| committer | GitHub | 2017-06-12 16:16:37 +0100 |
| commit | 22c431d221ca25413f3b63374d75173bedbe9e66 (patch) | |
| tree | f362e3ec0a69f528234a7833de347e9c63b98080 /Library/Homebrew/utils.rb | |
| parent | aa364fbf155ba4c795ebef51abee1212801c4771 (diff) | |
| parent | 021cef4b2bfebe330fa55e9dcc904a08932bad94 (diff) | |
| download | brew-22c431d221ca25413f3b63374d75173bedbe9e66.tar.bz2 | |
Merge pull request #2767 from MikeMcQuaid/rubocop-no-special-global-vars
rubocop: don’t allow special global variables.
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 8 |
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) |
