util-iso-boot: fix key file removal

This commit is contained in:
udeved 2017-02-16 22:20:55 +01:00
parent a287430ca7
commit 8b52d158d2

View file

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