]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postrm-menu-method
cmake: Pass CPPFLAGS in CFLAGS. Closes: #668813 Thanks, Simon Ruderich for the patch...
[debhelper.git] / autoscripts / postrm-menu-method
index 3e63f2f422585d9a8c995c059f12a2ebd12caef8..ffa1e4862bd35a3cf125f351d701f28033e4dff8 100644 (file)
@@ -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