keg: avoid attempting rmdir on must exist subdirs

This commit is contained in:
Michael Cho 2024-09-05 13:37:25 -04:00
parent 185d4e7edc
commit 39ab6d70db
No known key found for this signature in database
GPG Key ID: 55E85E28A7CD1E85

View File

@ -316,7 +316,7 @@ class Keg
unless dry_run
remove_old_aliases
remove_linked_keg_record if linked?
dirs.reverse_each(&:rmdir_if_possible)
(dirs - MUST_EXIST_SUBDIRECTORIES).reverse_each(&:rmdir_if_possible)
end
ObserverPathnameExtension.n