formula_installer: output better tapped formula message.

If we don't have a tab in the receipt then don't print this message and
just continue as-is.
This commit is contained in:
Mike McQuaid 2019-09-25 10:46:06 +01:00
parent 28fc268060
commit c9e0ba7d9b
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -574,7 +574,7 @@ class FormulaInstaller
end
tab_tap = tab.source["tap"]
if df.tap.to_s != tab_tap
if tab_tap.present? && df.tap.present? && df.tap.to_s != tab_tap.to_s
odie <<~EOS
#{df} is already installed from #{tab_tap}!
Please `brew uninstall #{df}` first."