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

This commit is contained in:
udeved 2017-02-16 22:05:02 +01:00
parent 148330e0c5
commit a287430ca7

View file

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