X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autoscripts%2Fpostinst-menu-method;h=c56d625894930d89f58ca573ae81638b4fedf098;hb=fb8f18f4a98669c3b85e1bd7920fbabfc00b886e;hp=0ea7959b1a93b5d8b8cbe1bd9d5e2d2d3bc4f0f7;hpb=ecff4e2941eefd33c368be7a0ee372406a6d0e94;p=debhelper.git diff --git a/autoscripts/postinst-menu-method b/autoscripts/postinst-menu-method index 0ea7959..c56d625 100644 --- a/autoscripts/postinst-menu-method +++ b/autoscripts/postinst-menu-method @@ -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