brew unlink: don't unlink an unlinked formula

This caused weird issues in the case that multiple formulae provide
the same file.
This commit is contained in:
Misty De Meo 2012-07-20 11:00:48 -05:00
parent a45bfc8786
commit 4c38d15110

View File

@ -3,6 +3,7 @@ module Homebrew extend self
raise KegUnspecifiedError if ARGV.named.empty?
ARGV.kegs.each do |keg|
return if !keg.linked?
print "Unlinking #{keg}... "
puts "#{keg.unlink} links removed"
end