X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autoscripts%2Fpostrm-menu-method;h=ffa1e4862bd35a3cf125f351d701f28033e4dff8;hb=731152b39ab2a84e565dd5b2663ad94c4a656c12;hp=2e0faed72bb04a91a56a50f41ed2bb79d5f0dc7f;hpb=e8b9fc5324e8c645d0c18d165e4b7f7bc94c8242;p=debhelper.git diff --git a/autoscripts/postrm-menu-method b/autoscripts/postrm-menu-method index 2e0faed..ffa1e48 100644 --- a/autoscripts/postrm-menu-method +++ b/autoscripts/postrm-menu-method @@ -1,3 +1,3 @@ inst=/etc/menu-methods/#PACKAGE# -if [ "$1" = "remove" -a -f "$inst" ]; then chmod a-x $inst ; fi -if [ -x /usr/bin/update-menus ]; then update-menus; fi +if [ "$1" = "remove" ] && [ -f "$inst" ]; then chmod a-x $inst ; fi +if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi