Keg#unlink only removes a linked keg entry *for that keg*

This commit is contained in:
Jack Nagel 2014-06-23 22:50:51 -05:00
parent cf19ccb436
commit b98f7277a4

View File

@ -130,7 +130,7 @@ class Keg < Pathname
end
end
if linked_keg_record.symlink?
if linked?
linked_keg_record.unlink
linked_keg_record.parent.rmdir_if_possible
end