From: Richard Kettlewell Date: Sat, 4 Apr 2009 16:39:18 +0000 (+0100) Subject: Use command instead of type, for greater portability X-Git-Tag: 5.0.3~4^2~156 X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/commitdiff_plain/7720d024b4ccc9176e9b20195f6805b369e9b1e7?ds=sidebyside Use command instead of type, for greater portability --- diff --git a/debian/postinst.disobedience b/debian/postinst.disobedience index 4c06bef..fc26afa 100644 --- a/debian/postinst.disobedience +++ b/debian/postinst.disobedience @@ -21,7 +21,7 @@ set -e case "$1" in configure ) - if type update-menus >/dev/null 2>&1; then + if command -v update-menus >/dev/null 2>&1; then update-menus fi ;; diff --git a/debian/postrm.disobedience b/debian/postrm.disobedience index 85f80a4..0742696 100755 --- a/debian/postrm.disobedience +++ b/debian/postrm.disobedience @@ -21,7 +21,7 @@ set -e case "$1" in remove ) - if type update-menus >/dev/null 2>&1; then + if command -v update-menus >/dev/null 2>&1; then update-menus fi ;;