Update storage-test.sh

This commit is contained in:
2025-05-04 09:59:15 -05:00
parent 9473142809
commit 48f85a8e56

View File

@@ -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