Update storage-test.sh
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user