X-Git-Url: https://git.grml.org/?p=grml-rescueboot.git;a=blobdiff_plain;f=debian%2Fpostrm;fp=debian%2Fpostrm;h=2154b59237825eaaec2a4fcb535f2273f27cf06d;hp=6291c9000e40654f4322d646609609d715c5c710;hb=199476a3ee4fb6e6e4e71f719c9f29f5fa93cf5d;hpb=90a2b1e35222a49e07cbcf9a2339a2e1be6c5931 diff --git a/debian/postrm b/debian/postrm index 6291c90..2154b59 100644 --- a/debian/postrm +++ b/debian/postrm @@ -5,8 +5,10 @@ set -e case "$1" in purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - echo "Updating grub.cfg to make sure there are no non-existing entries being left." - update-grub + if which update-grub >/dev/null 2>&1; then + echo "Updating grub.cfg to make sure there are no non-existing entries being left." + update-grub + fi ;; *)