diff options
author | joey <joey> | 2002-05-26 05:06:51 +0000 |
---|---|---|
committer | joey <joey> | 2002-05-26 05:06:51 +0000 |
commit | 4106beebd28b7fe73dd19e43cf15378c08b8241f (patch) | |
tree | a2b42f4eefb46e7b3ae27ab09d115f1093fa6103 /autoscripts/postrm-menu-method | |
parent | 9dc5e9ccba3756ad14d7c2941c3130243bbc4406 (diff) |
r528: * Consistently use the which command instead of command -v or hardcoded
paths in autoscripts. Neither is in posix, but which is in debianutils, so
will always be available. command -v is not available in zsh.
Closes: #148172
Diffstat (limited to 'autoscripts/postrm-menu-method')
-rw-r--r-- | autoscripts/postrm-menu-method | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoscripts/postrm-menu-method b/autoscripts/postrm-menu-method index 2e0faed7..0d573fd0 100644 --- a/autoscripts/postrm-menu-method +++ b/autoscripts/postrm-menu-method @@ -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 |