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