chiark / gitweb /
Use command instead of type, for greater portability
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 4 Apr 2009 16:39:18 +0000 (17:39 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 4 Apr 2009 16:39:18 +0000 (17:39 +0100)
debian/postinst.disobedience
debian/postrm.disobedience

index 4c06befaf6583ae55104d3afd49bb4df46c38511..fc26afa62a2d1835ba99f1cebacc6e271f237129 100644 (file)
@@ -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
   ;;
index 85f80a4fc8c79c6eb78860fdbc3fda2ba9244afd..0742696603c402241c5739d7a7936a4880fbd5e6 100755 (executable)
@@ -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
   ;;