summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcomponents/9990-misc-helpers.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh
index bb1cf21..38a87ac 100755
--- a/components/9990-misc-helpers.sh
+++ b/components/9990-misc-helpers.sh
@@ -719,15 +719,15 @@ mount_persistence_media ()
fi
raid_drives=$(cat /proc/partitions | awk '{ if ($4!="name") { print $4 } }' \
- | grep "md" | egrep -v "^$")
+ | grep "md" | egrep -v "^$")
for raid_drive in $raid_drives
do
- disks=`ls /sys/block/$raid_drive/slaves`
- for disk in ${disks}
+ disks=`ls /sys/block/$raid_drive/slaves`
+ for disk in ${disks}
do
if [ "/dev/${disk}" = "${device}" ]
- then
+ then
return 1
fi
done