move rmdir to end of uninstall section

If rmdir fails, other commands are not executed, so
move rmdir to end of uninstall section
This commit is contained in:
Antynea
2020-10-09 02:32:25 +02:00
committed by GitHub
parent 4493bdc6e4
commit fa65c3d6d9

View File

@@ -16,8 +16,8 @@ install:
uninstall:
rm -f "$(DESTDIR)/etc/grub.d/41_snapshots-btrfs"
rm -f "$(DESTDIR)/etc/default/grub-btrfs/config"
rmdir --ignore-fail-on-non-empty "$(DESTDIR)/etc/default/grub-btrfs"
rm -f "$(LIB_DIR)/systemd/system/grub-btrfs.service"
rm -f "$(LIB_DIR)/systemd/system/grub-btrfs.path"
rm -f "$(SHARE_DIR)/licenses/$(PKGNAME)/LICENSE"
rm -f "$(DESTDIR)/boot/grub/grub-btrfs.cfg"
rmdir --ignore-fail-on-non-empty "$(DESTDIR)/etc/default/grub-btrfs"