fix: 🐛 stop removing uki uefi boot entries if deactivated

This commit is contained in:
Adrian Wannenmacher 2021-06-18 21:17:02 +02:00
parent 8a27b4e196
commit c4dc5fdc0a
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5

View File

@ -163,9 +163,11 @@ function main
echo " -> cleaning uki and boot entry for removed snapshot $uki"
rm "$CFG_UKI_DIR/arch-linux-$uki.efi"
if test "$CFG_EFI" = "yes"
efibootmgr -q -b (efibootmgr -v | rg "arch-linux-$uki.efi" | sed "s/\*//;s/Boot0*\(.*\) Arch .*/\1/") -B
end
end
end
case "*"
error "unknown command"