install: don't exit on Homebrew.failed?

This will be set if e.g. pinned packages aren't being upgraded.

Fixes #4388.
This commit is contained in:
Mike McQuaid 2018-07-02 10:25:04 +01:00
parent 1e610ae7a3
commit 94409712fe

View File

@ -27,12 +27,14 @@ module Homebrew
def check_development_tools
checks = Diagnostic::Checks.new
failed = false
checks.fatal_development_tools_checks.each do |check|
out = checks.send(check)
next if out.nil?
failed ||= true
ofail out
end
exit 1 if Homebrew.failed?
exit 1 if failed
end
def check_cellar