From 4106beebd28b7fe73dd19e43cf15378c08b8241f Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 26 May 2002 05:06:51 +0000 Subject: 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 --- autoscripts/postinst-xaw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autoscripts/postinst-xaw') diff --git a/autoscripts/postinst-xaw b/autoscripts/postinst-xaw index 035aa269..f7703dcf 100644 --- a/autoscripts/postinst-xaw +++ b/autoscripts/postinst-xaw @@ -1,6 +1,6 @@ if [ "$1" = "configure" ]; then - if [ -x /usr/sbin/update-xaw-wrappers ]; then - /usr/sbin/update-xaw-wrappers + if which update-xaw-wrappers >/dev/null 2>&1; then + update-xaw-wrappers fi for opts in #OPTS#; do update-alternatives --quiet --install $opts 25 -- cgit v1.2.3