util-iso-boot: only remove gpgkey if it exists

This commit is contained in:
udeved 2017-02-16 22:06:39 +01:00
parent 19995bbac3
commit 9a50eaed94

View file

@ -58,7 +58,7 @@ prepare_initramfs(){
if [[ -n ${gpgkey} ]]; then
exec 17<&-
fi
rm ${USERCONFDIR}/gpgkey
[[ -f ${USERCONFDIR}/gpgkey ]] && rm ${USERCONFDIR}/gpgkey
}
prepare_boot_extras(){