diff options
| author | Mike McQuaid | 2014-04-11 15:10:59 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-04-11 16:02:41 +0100 |
| commit | f23ddc7456e0e004d9d55f32ec660460a7b7b461 (patch) | |
| tree | 1d14a0565b738acf3c7491150f781797c7476338 /Library | |
| parent | 9f1a2ba521620a5522cfaab32d6871fa60b41ef7 (diff) | |
| download | homebrew-f23ddc7456e0e004d9d55f32ec660460a7b7b461.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 |
