crypt-lib.sh: 'command -v' preferred over 'type'

master
Amadeusz Żołnowski 2011-05-05 13:34:19 +02:00 committed by Harald Hoyer
parent d04de5fdd0
commit 2f95d699dc
1 changed files with 1 additions and 1 deletions

View File

@ -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'.