Update storage-test.sh
This commit is contained in:
@@ -105,11 +105,10 @@ IO4kRandWrite=0
|
|||||||
ChosenPartition=""
|
ChosenPartition=""
|
||||||
if [ "$1" = "" ]; then
|
if [ "$1" = "" ]; then
|
||||||
df=0; declare -A driveSel
|
df=0; declare -A driveSel
|
||||||
drives="$(/bin/df -kTh | grep ext4)"
|
echo "$(/bin/df -kTh | grep ext4)" | while IFS= read -r line ; do
|
||||||
echo "$drives" | while IFS= read -r line ; do
|
|
||||||
((df++))
|
((df++))
|
||||||
path=$(echo $line | cut -d'%' -f2)
|
path=$(echo $line | cut -d'%' -f2)
|
||||||
${driveSel[${df}]}=${path// }
|
${driveSel[${df}]}="${path// }"
|
||||||
echo "$df) ${path// }"
|
echo "$df) ${path// }"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user