[util-iso-image] fix grub.cfg cleanup

This commit is contained in:
Philip 2017-01-25 13:27:45 +01:00
parent a9a5550c83
commit 24b3c8df6c

View file

@ -350,5 +350,8 @@ clean_up_image(){
fi
fi
find "$1" -name *.pacnew -name *.pacsave -name *.pacorig -delete
[[ -f $1/boot/grub/grub.cfg ]] && rm $1/boot/grub/grub.cfg
file=$1/boot/grub/grub.cfg
if [[ -f "$file" ]]; then
rm $file
fi
}