X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autoscripts%2Fpostinst-menu-method;h=c56d625894930d89f58ca573ae81638b4fedf098;hb=e2a6d4cec4a7ee952cf6a7f250d80f1d75a38f95;hp=01913d8269354b56a66e6c86db3c7264736b5c61;hpb=c84545b9234bf1d233983d5ae59ab59d573a5460;p=debhelper.git diff --git a/autoscripts/postinst-menu-method b/autoscripts/postinst-menu-method index 01913d8..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 ] && [ -f $inst ] ; then +if [ -f $inst ]; then chmod a+x $inst - update-menus + if [ -x "`which update-menus 2>/dev/null`" ]; then + update-menus + fi fi