Update Library/Homebrew/cmd/link.rb

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Connor Mann 2021-05-18 09:35:05 -04:00 committed by GitHub
parent 212b64836f
commit f92300f129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ module Homebrew
args.named.to_formulae_and_casks(only: :formula, method: :kegs).freeze.each do |keg|
head = keg.version.head?
next unless args.HEAD? == head
next if args.HEAD? != head
keg_only = Formulary.keg_only?(keg.rack)