From c9f609746cb92be9d39a88916ca92c51e9400fda Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 4 May 2025 10:23:46 -0500 Subject: [PATCH] Update storage-test.sh --- storage-test.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/storage-test.sh b/storage-test.sh index dee441e..302d5ee 100755 --- a/storage-test.sh +++ b/storage-test.sh @@ -106,11 +106,11 @@ ChosenPartition="" if [ "$1" = "" ]; then echo Print_Style "Select a drive to test from:" "$YELLOW" - df=0; drive_sel=() + 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+=("${path// }") + drive_sel[$df]=${path// } Print_Style "$df) ${path// }" "$CYAN" done echo @@ -118,9 +118,9 @@ if [ "$1" = "" ]; then echo echo ${drive_sel[@]} - # echo "cd ${drive_sel[1]}" - # echo "cd ${drive_sel[2]}" - # echo "cd ${drive_sel[3]}" + echo "cd ${drive_sel[1]}" + echo "cd ${drive_sel[2]}" + echo "cd ${drive_sel[3]}" exit 0 cd \ else