X-Git-Url: http://git.grml.org/?p=grml-rescueboot.git;a=blobdiff_plain;f=debian%2Fpostrm;h=2154b59237825eaaec2a4fcb535f2273f27cf06d;hp=6291c9000e40654f4322d646609609d715c5c710;hb=241540acf16076b359186fb459931a74078d75e6;hpb=e20b2c3b46c11c36a348e150c034ca10888e78ee 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 ;; *)