From 48f85a8e56f901253d0d24e8279894ce83832d97 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 4 May 2025 09:59:15 -0500 Subject: [PATCH] Update storage-test.sh --- storage-test.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/storage-test.sh b/storage-test.sh index 96030b3..873a384 100755 --- a/storage-test.sh +++ b/storage-test.sh @@ -105,11 +105,10 @@ IO4kRandWrite=0 ChosenPartition="" if [ "$1" = "" ]; then df=0; declare -A driveSel - drives="$(/bin/df -kTh | grep ext4)" - echo "$drives" | while IFS= read -r line ; do + echo "$(/bin/df -kTh | grep ext4)" | while IFS= read -r line ; do ((df++)) path=$(echo $line | cut -d'%' -f2) - ${driveSel[${df}]}=${path// } + ${driveSel[${df}]}="${path// }" echo "$df) ${path// }" done