Added a hint how to link a formula that is installed but not linked

This commit is contained in:
ihatetoregister 2016-11-05 00:17:02 +01:00 committed by GitHub
parent 0028cf9fb8
commit 12c252855a

View File

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