aboutsummaryrefslogtreecommitdiffstats
path: root/Library/brew.rb
diff options
context:
space:
mode:
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