From: Chao Wang Date: Mon, 30 Jul 2012 03:56:29 +0000 (+0800) Subject: dracut-functions: $_x should exist, no need to test. X-Git-Tag: 023~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b2d225a6698607bbcb73b6e6d12fbfc5be014102;p=thirdparty%2Fdracut.git dracut-functions: $_x should exist, no need to test. Signed-off-by: Chao Wang --- diff --git a/dracut-functions.sh b/dracut-functions.sh index 9242204bf..04b4c7a34 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -423,7 +423,6 @@ check_block_and_slaves() { fi [[ -d /sys/dev/block/$2/slaves ]] || return 1 for _x in /sys/dev/block/$2/slaves/*/dev; do - [[ -f $_x ]] || continue check_block_and_slaves $1 $(cat "$_x") && return 0 done return 1