]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postinst-xaw
r528: * Consistently use the which command instead of command -v or hardcoded
[debhelper.git] / autoscripts / postinst-xaw
index 324058f8406ac7c29b2aaedced39f6e19c1bb233..f7703dcf44cc006f7f0b4988fa03efc98c6111bb 100644 (file)
@@ -1,6 +1,6 @@
 if [ "$1" = "configure" ]; then
-       if test -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