util-iso-boot: fix key file removal

This commit is contained in:
udeved 2017-02-16 22:18:47 +01:00
parent 9a50eaed94
commit a95e8d6fcc

View file

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