From 7720d024b4ccc9176e9b20195f6805b369e9b1e7 Mon Sep 17 00:00:00 2001 Message-Id: <7720d024b4ccc9176e9b20195f6805b369e9b1e7.1717584879.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sat, 4 Apr 2009 17:39:18 +0100 Subject: [PATCH] Use command instead of type, for greater portability Organization: Straylight/Edgeware From: Richard Kettlewell --- debian/postinst.disobedience | 2 +- debian/postrm.disobedience | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ;; -- [mdw]