aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-04-11 15:10:59 +0100
committerMike McQuaid2014-04-11 16:02:41 +0100
commitf23ddc7456e0e004d9d55f32ec660460a7b7b461 (patch)
tree1d14a0565b738acf3c7491150f781797c7476338 /Library
parent9f1a2ba521620a5522cfaab32d6871fa60b41ef7 (diff)
downloadhomebrew-f23ddc7456e0e004d9d55f32ec660460a7b7b461.tar.bz2
brew: allow external cmds to use Homebrew.failed.
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