Remove linked kegs directory when empty
This commit is contained in:
parent
f222ca04fd
commit
bcfc9d8cf7
@ -120,7 +120,11 @@ class Keg < Pathname
|
||||
Find.prune if src.directory?
|
||||
end
|
||||
end
|
||||
linked_keg_record.unlink if linked_keg_record.symlink?
|
||||
|
||||
if linked_keg_record.symlink?
|
||||
linked_keg_record.unlink
|
||||
linked_keg_record.parent.rmdir_if_possible
|
||||
end
|
||||
|
||||
dirs.reverse_each(&:rmdir_if_possible)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user