mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
extrahd: fix grep syntax in scanhd script.
This commit is contained in:
@@ -11,7 +11,7 @@ case "$1" in
|
|||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
partitions)
|
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
|
while read device size; do
|
||||||
[ -z "${device}" ] && continue
|
[ -z "${device}" ] && continue
|
||||||
echo "${device};${size};$(blkid -c /dev/null -s UUID -o value /dev/${device});"
|
echo "${device};${size};$(blkid -c /dev/null -s UUID -o value /dev/${device});"
|
||||||
|
|||||||
Reference in New Issue
Block a user