Files
tigerbrew/Library/Homebrew/cmd/unlink.rb
T
Misty De Meo 66a4ea1c80 Keg#unlink: check destination before unlinking
Rather than skip unlinking if there's no linked keg record, check to
see whether the destination's realpath is the same as the source file
in the keg being unlinked.
2012-07-22 10:58:19 -05:00

11 lines
215 B
Ruby

module Homebrew extend self
def unlink
raise KegUnspecifiedError if ARGV.named.empty?
ARGV.kegs.each do |keg|
print "Unlinking #{keg}... "
puts "#{keg.unlink} links removed"
end
end
end