core93: prevent erase content of grub.conf if grub-mkconfig run into in error.

This commit is contained in:
Arne Fitzenreiter
2015-08-11 15:31:26 +02:00
parent 3ae89dd63c
commit a8379a53d4

View File

@@ -57,7 +57,7 @@ rm -f /opt/pakfire/db/rootfiles/libevent2
sendprofile
# Update grub config to display new core version
if [ -e /boot/grub/grub.cfg ]; then
grub-mkconfig > /boot/grub/grub.cfg
grub-mkconfig -o /boot/grub/grub.cfg
fi
sync