Merge pull request #1442 from ihatetoregister/patch-1

Added a hint how to link a formula that is installed but not linked
This commit is contained in:
Mike McQuaid 2016-11-04 21:59:34 -04:00 committed by GitHub
commit 297c60059c

View File

@ -142,6 +142,7 @@ module Homebrew
msg = "#{current.full_name}-#{current.installed_version} already installed"
unless current.linked_keg.symlink? || current.keg_only?
msg << ", it's just not linked"
puts "You can link formula with `brew link #{f}`"
end
opoo msg
elsif f.migration_needed? && !ARGV.force?