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
commit3a5c14cea4a56f75e45b783633258480acda9431 (patch)
tree9ff18d1ca09dcad75491ff5d2cd0a7657376cef9 /Library
parent7fe9413cf16d70e89fdb79228a297d98a2608625 (diff)
downloadbrew-3a5c14cea4a56f75e45b783633258480acda9431.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