From: Amadeusz Żołnowski Date: Thu, 5 May 2011 11:34:19 +0000 (+0200) Subject: crypt-lib.sh: 'command -v' preferred over 'type' X-Git-Tag: 011~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f95d699dc03583c90a2acfbfefdd2b55f906c59;p=thirdparty%2Fdracut.git crypt-lib.sh: 'command -v' preferred over 'type' --- diff --git a/modules.d/90crypt/crypt-lib.sh b/modules.d/90crypt/crypt-lib.sh index 26f99503f..f42328972 100644 --- a/modules.d/90crypt/crypt-lib.sh +++ b/modules.d/90crypt/crypt-lib.sh @@ -2,7 +2,7 @@ # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- # ex: ts=8 sw=4 sts=4 et filetype=sh -type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh +command -v getarg >/dev/null || . /lib/dracut-lib.sh # Try to mount specified device (by path, by UUID or by label) and check # the path with 'test'.