diff options
| author | Mike McQuaid | 2015-01-02 13:34:20 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-04 11:05:34 +0000 |
| commit | bd334c55a00d006168c767ea0442df7d6a1954ea (patch) | |
| tree | 8d33677a0975074c58e970aa8476143750736357 /Library/brew.rb | |
| parent | fc2818b7a54dadcf0c35965ef1f07219da3fc4a7 (diff) | |
| download | brew-bd334c55a00d006168c767ea0442df7d6a1954ea.tar.bz2 | |
brew.rb: return exit code from internal commands.
Diffstat (limited to 'Library/brew.rb')
| -rwxr-xr-x | Library/brew.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/brew.rb b/Library/brew.rb index 843853335..88a0f6cc8 100755 --- a/Library/brew.rb +++ b/Library/brew.rb @@ -133,6 +133,7 @@ begin if internal_cmd Homebrew.send cmd.to_s.gsub('-', '_').downcase + exit 1 if Homebrew.failed? elsif which "brew-#{cmd}" %w[CACHE CELLAR LIBRARY_PATH PREFIX REPOSITORY].each do |e| ENV["HOMEBREW_#{e}"] = Object.const_get("HOMEBREW_#{e}").to_s |
