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