projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d04de5f
)
crypt-lib.sh: 'command -v' preferred over 'type'
author
Amadeusz Żołnowski
<aidecoe@aidecoe.name>
Thu, 5 May 2011 11:34:19 +0000
(13:34 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Fri, 6 May 2011 10:23:51 +0000
(12:23 +0200)
modules.d/90crypt/crypt-lib.sh
patch
|
blob
|
history
diff --git
a/modules.d/90crypt/crypt-lib.sh
b/modules.d/90crypt/crypt-lib.sh
index
26f9950
..
f423289
100644
(file)
--- 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'.