]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postrm-menu-method
r528: * Consistently use the which command instead of command -v or hardcoded
[debhelper.git] / autoscripts / postrm-menu-method
index 2e0faed72bb04a91a56a50f41ed2bb79d5f0dc7f..0d573fd0d16bba693ab66b058dbcadf0593ba7b4 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 [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi