Skip to contentSkip to conversation

dracut-functions: $_x should exist, no need to test.

PATCH New Chao Wang 1 participant 1 message Jul 30, 2012

lore
Share & tools
lore

Chao Wang

author
#0 lore raw

PATCH 1/1 dracut-functions: $_x should exist, no need to test.

---
 dracut-functions.sh | 1 -
 1 file changed, 1 deletion(-)
dracut-functions.sh +0 -1
index 9242204..04b4c7a 100755
@@ -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
Signature · 1 line
1.7.11.3