]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/scripts/scanhd
extrahd: fix grep syntax in scanhd script.
[ipfire-2.x.git] / src / scripts / scanhd
index f46a630735aaf6f4ad3768794fa77db771b387dd..b208bbb1d1ab5f145774fbd638faeebf7d92e607 100644 (file)
@@ -11,7 +11,7 @@ case "$1" in
                done
                ;;
        partitions)
-               cat /proc/partitions | awk '{print $4 " " $3 }' | grep -v name | grep -v "^[:space:]*$" | \
+               cat /proc/partitions | awk '{print $4 " " $3 }' | grep -v name | grep -v "^[[:space:]]*$" | \
                        while read device size; do
                                [ -z "${device}" ] && continue
                                echo "${device};${size};$(blkid -c /dev/null -s UUID -o value /dev/${device});"