diff options
| author | Mike McQuaid | 2014-04-11 15:10:59 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-04-11 16:02:41 +0100 |
| commit | 3a5c14cea4a56f75e45b783633258480acda9431 (patch) | |
| tree | 9ff18d1ca09dcad75491ff5d2cd0a7657376cef9 /Library | |
| parent | 7fe9413cf16d70e89fdb79228a297d98a2608625 (diff) | |
| download | brew-3a5c14cea4a56f75e45b783633258480acda9431.tar.bz2 | |
brew: allow external cmds to use Homebrew.failed.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/brew.rb | 2 |
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 |
