Fix KeyOnlyReason property access.

This commit is contained in:
Alessandro Di Felice 2020-04-12 10:08:35 -05:00 committed by GitHub
parent 793407a2e0
commit b752efbd37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ module Homebrew
if keg_only
if Homebrew.default_prefix?
f = keg.to_formula
if f.keg_only_reason.reason.by_macos?
if f.keg_only_reason.by_macos?
caveats = Caveats.new(f)
opoo <<~EOS
Refusing to link macOS provided/shadowed software: #{keg.name}