From f21037a510595ce51440863c606caa635402ce12 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 4 May 2025 09:49:49 -0500 Subject: [PATCH] Update storage-test.sh --- storage-test.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/storage-test.sh b/storage-test.sh index c1f0fb1..48af1cf 100755 --- a/storage-test.sh +++ b/storage-test.sh @@ -107,11 +107,9 @@ if [ "$1" = "" ]; then # User did not provide a partition/folder, change directory to rootfs df=0 drives="$(df | grep ext4)" - IFS=' - ' - for d in "${drives}"; do - ((df++)) - echo "${df}) ${d}" + echo "$drives" | while IFS= read -r line ; do + (($df++)) + echo "$df) $line" done exit 0