Use HOMEBREW_DEFAULT_PREFIX instead of /usr/local
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
19953c01b3
commit
238387d694
@ -89,7 +89,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
if keg_only
|
if keg_only
|
||||||
if HOMEBREW_PREFIX.to_s == "/usr/local" && formula.present? && formula.keg_only_reason.by_macos?
|
if HOMEBREW_PREFIX.to_s == HOMEBREW_DEFAULT_PREFIX && formula.present? && formula.keg_only_reason.by_macos?
|
||||||
caveats = Caveats.new(formula)
|
caveats = Caveats.new(formula)
|
||||||
opoo <<~EOS
|
opoo <<~EOS
|
||||||
Refusing to link macOS provided/shadowed software: #{keg.name}
|
Refusing to link macOS provided/shadowed software: #{keg.name}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user