]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postinst-menu-method
cmake: Pass CPPFLAGS in CFLAGS. Closes: #668813 Thanks, Simon Ruderich for the patch...
[debhelper.git] / autoscripts / postinst-menu-method
index 0ea7959b1a93b5d8b8cbe1bd9d5e2d2d3bc4f0f7..c56d625894930d89f58ca573ae81638b4fedf098 100644 (file)
@@ -1,5 +1,7 @@
 inst=/etc/menu-methods/#PACKAGE#
-if [ -x /usr/bin/update-menus -a -f $inst -a -x /usr/sbin/install-menu ] ; then
+if [ -f $inst ]; then
        chmod a+x $inst
-       update-menus
+       if [ -x "`which update-menus 2>/dev/null`" ]; then
+               update-menus
+       fi
 fi