From ebd1c1c5d48b3a12ec039783a2f865c251cf76c6 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 10 Aug 2009 14:18:37 +0200 Subject: [PATCH] script-functions: replace type -p with which --- debian/changelog | 8 ++++++-- etc/grml/script-functions | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index a4fd1fe..5f87c5c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 06 Aug 2009 23:42:33 +0200 + -- Michael Prokop Mon, 10 Aug 2009 14:15:50 +0200 grml-etc-core (0.3.73) unstable; urgency=low diff --git a/etc/grml/script-functions b/etc/grml/script-functions index 3ecd65b..1786072 100644 --- a/etc/grml/script-functions +++ b/etc/grml/script-functions @@ -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" -- 2.1.4