Merge pull request #12238 from carlocab/link-arm
cmd/link: change `default_prefix?` check to `/usr/local` check
This commit is contained in:
commit
fecacdce49
@ -89,7 +89,7 @@ module Homebrew
|
||||
end
|
||||
|
||||
if keg_only
|
||||
if Homebrew.default_prefix? && 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)
|
||||
opoo <<~EOS
|
||||
Refusing to link macOS provided/shadowed software: #{keg.name}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user