From fa65c3d6d985a7f2b2fb7df5886ddda7a2a00446 Mon Sep 17 00:00:00 2001 From: Antynea Date: Fri, 9 Oct 2020 02:32:25 +0200 Subject: [PATCH] move rmdir to end of uninstall section If rmdir fails, other commands are not executed, so move rmdir to end of uninstall section --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 70b16e5..6d62613 100644 --- a/Makefile +++ b/Makefile @@ -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"