aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/brew.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/brew.rb b/Library/brew.rb
index 484ee3bca..5b2bc1ccf 100755
--- a/Library/brew.rb
+++ b/Library/brew.rb
@@ -109,7 +109,7 @@ begin
end
exec "brew-#{cmd}", *ARGV
elsif require? which("brew-#{cmd}.rb").to_s
- exit 0
+ exit Homebrew.failed? ? 1 : 0
else
onoe "Unknown command: #{cmd}"
exit 1