brew: allow external cmds to use Homebrew.failed.
This commit is contained in:
parent
7fe9413cf1
commit
3a5c14cea4
@ -109,7 +109,7 @@ begin
|
|||||||
end
|
end
|
||||||
exec "brew-#{cmd}", *ARGV
|
exec "brew-#{cmd}", *ARGV
|
||||||
elsif require? which("brew-#{cmd}.rb").to_s
|
elsif require? which("brew-#{cmd}.rb").to_s
|
||||||
exit 0
|
exit Homebrew.failed? ? 1 : 0
|
||||||
else
|
else
|
||||||
onoe "Unknown command: #{cmd}"
|
onoe "Unknown command: #{cmd}"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user