aboutsummaryrefslogtreecommitdiffstats
path: root/Library/brew.rb
diff options
context:
space:
mode:
authorMike McQuaid2015-01-02 13:34:20 +0000
committerMike McQuaid2015-01-04 11:05:34 +0000
commitbd334c55a00d006168c767ea0442df7d6a1954ea (patch)
tree8d33677a0975074c58e970aa8476143750736357 /Library/brew.rb
parentfc2818b7a54dadcf0c35965ef1f07219da3fc4a7 (diff)
downloadbrew-bd334c55a00d006168c767ea0442df7d6a1954ea.tar.bz2
brew.rb: return exit code from internal commands.
Diffstat (limited to 'Library/brew.rb')
-rwxr-xr-xLibrary/brew.rb1
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