diff options
| author | Mike McQuaid | 2017-06-10 20:12:55 +0300 | 
|---|---|---|
| committer | Mike McQuaid | 2017-06-12 09:11:42 +0100 | 
| commit | 021cef4b2bfebe330fa55e9dcc904a08932bad94 (patch) | |
| tree | 835ed01ef034c83d219d8a5c34ed10b1d47f882f /Library/Homebrew/utils.rb | |
| parent | c21abf0e3ab89e0218a26905fe44725e19cbf675 (diff) | |
| download | brew-021cef4b2bfebe330fa55e9dcc904a08932bad94.tar.bz2 | |
Autocorrect Rubocop Style/SpecialGlobalVars.
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) | 
