From cc5618ac7fe1e54303457a2cb4691c69dffad4f0 Mon Sep 17 00:00:00 2001 From: Bandie Yip Kojote Date: Tue, 29 Dec 2015 21:26:53 +0100 Subject: [PATCH] Make rm more safe. --- sbin/grub2-unsign | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sbin/grub2-unsign b/sbin/grub2-unsign index e31471b..a6b1361 100644 --- a/sbin/grub2-unsign +++ b/sbin/grub2-unsign @@ -14,9 +14,7 @@ fi # Then remove the signatures. -for i in `find /boot -name "*.sig"` -do - rm $i -done +find /boot -name '*.sig' -exec rm -- '{}' + + echo "GRUB2 unsigned. WARNING: If you want to deactivate GRUB2's signature feature, change the check_signatures variable in the headers file!" exit 0