From 5653d242c0971d8993d8d361a3844994dbf7f6e9 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 4 May 2025 10:27:27 -0500 Subject: [PATCH] Update storage-test.sh --- storage-test.sh | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/storage-test.sh b/storage-test.sh index 302d5ee..3fd674f 100755 --- a/storage-test.sh +++ b/storage-test.sh @@ -104,25 +104,27 @@ IO4kRandWrite=0 # Did the user give a folder ? ChosenPartition="" if [ "$1" = "" ]; then + drives="$(/bin/df -kTh | grep ext4)" echo Print_Style "Select a drive to test from:" "$YELLOW" - df=0; declare -A drive_sel - echo "$(/bin/df -kTh | grep ext4)" | while IFS= read -r line ; do - ((df++)) - path=$(echo $line | cut -d'%' -f2) - drive_sel[$df]=${path// } + df=0 + echo "$drives" | while IFS= read -r line ; do + ((df++)); path=$(echo $line | cut -d'%' -f2) Print_Style "$df) ${path// }" "$CYAN" done echo # read -r -p '#: ' drive_path