Update storage-test.sh

This commit is contained in:
2025-05-04 09:58:17 -05:00
parent 790bf59f18
commit 9473142809

View File

@@ -104,13 +104,13 @@ IO4kRandWrite=0
# Did the user give a folder ?
ChosenPartition=""
if [ "$1" = "" ]; then
# User did not provide a partition/folder, change directory to rootfs
df=0
df=0; declare -A driveSel
drives="$(/bin/df -kTh | grep ext4)"
echo "$drives"
echo "$drives" | while IFS= read -r line ; do
((df++))
echo "$df) $line"
path=$(echo $line | cut -d'%' -f2)
${driveSel[${df}]}=${path// }
echo "$df) ${path// }"
done
exit 0