X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Fscript-functions;h=1786072d771c8c634af233be48314801582f5b40;hb=e3f30f8cbdef65bd82bfdc89f437765eb5dac4f0;hp=3ecd65b96f9f09b9ac8a1a8b896ca421d6b45b38;hpb=e55cc5630f6d5e1d9d90474643134a22f4bf15f2;p=grml-etc-core.git 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"