From 4eb3769226d3bc84d84665e363a3b2368d1f7262 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 4 May 2025 09:40:41 -0500 Subject: [PATCH] Update storage-test.sh --- storage-test.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/storage-test.sh b/storage-test.sh index 310df6a..aacb76e 100755 --- a/storage-test.sh +++ b/storage-test.sh @@ -106,11 +106,10 @@ ChosenPartition="" if [ "$1" = "" ]; then # User did not provide a partition/folder, change directory to rootfs df=0 - drives=($(df | grep ext4)) - for d in $(df | grep ext4); do + while IFS= read -r line; do ((df++)) - echo "${df}) ${d}" - done + echo "${df}) ${line}" + done <<< "$(df | grep ext4)" exit 0 cd /