script-functions: replace type -p with which v0.3.74
authorMichael Prokop <mika@grml.org>
Mon, 10 Aug 2009 12:18:37 +0000 (14:18 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 10 Aug 2009 12:18:37 +0000 (14:18 +0200)
debian/changelog
etc/grml/script-functions

index a4fd1fe..5f87c5c 100644 (file)
@@ -1,8 +1,12 @@
 grml-etc-core (0.3.74) unstable; urgency=low
 
-  * vimrc: merged etc/vim/vimrc and etc/skel/.vimrc into one file
+  [ Frank Terbeck ]
+  * vimrc: merged /etc/vim/vimrc and /etc/skel/.vimrc into one file
+
+  [ Michael Prokop ]
+  * /etc/grml/script-functions: replace 'type -p' with 'which'.
 
- -- Frank Terbeck <ft@grml.org>  Thu, 06 Aug 2009 23:42:33 +0200
+ -- Michael Prokop <mika@grml.org>  Mon, 10 Aug 2009 14:15:50 +0200
 
 grml-etc-core (0.3.73) unstable; urgency=low
 
index 3ecd65b..1786072 100644 (file)
@@ -51,7 +51,7 @@ setdialog(){
 check4progs(){
   local RC=''
   for arg in $* ; do
-    type -p $arg >/dev/null 2>&1 || RC="$arg"
+    which $arg >/dev/null 2>&1 || RC="$arg"
   done
   if [ -n "$RC" ] ; then
      echo "$RC not installed"