From 2e67687f91f27714db2263fbe7520bcac0bd190f Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Mon, 24 Sep 2012 07:59:46 +0200 Subject: [PATCH] extrahd: fix grep syntax in scanhd script. --- src/scripts/scanhd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/scanhd b/src/scripts/scanhd index f46a630735..b208bbb1d1 100644 --- a/src/scripts/scanhd +++ b/src/scripts/scanhd @@ -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});" -- 2.39.5