summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-menu
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/postinst-menu')
-rw-r--r--autoscripts/postinst-menu4
1 files changed, 3 insertions, 1 deletions
diff --git a/autoscripts/postinst-menu b/autoscripts/postinst-menu
index 276a3c0a..b56a3462 100644
--- a/autoscripts/postinst-menu
+++ b/autoscripts/postinst-menu
@@ -1 +1,3 @@
-if [ "$1" = "configure" ] && [ -x /usr/bin/update-menus ]; then update-menus ; fi
+if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
+ update-menus
+fi