Update storage-test.sh
This commit is contained in:
@@ -107,10 +107,7 @@ IO4kRandWrite=0
|
|||||||
ChosenPartition=""
|
ChosenPartition=""
|
||||||
if [ "$1" = "" ]; then
|
if [ "$1" = "" ]; then
|
||||||
drives="$(/bin/df -kTh | grep ext4)"
|
drives="$(/bin/df -kTh | grep ext4)"
|
||||||
echo "HERE: ${#drives}"
|
|
||||||
drives2=(${drives})
|
drives2=(${drives})
|
||||||
echo "HERE: `echo ${drives2[0]} | cut -d'%' -f2`"
|
|
||||||
echo "HERE: `echo ${drives2[1]} | cut -d'%' -f2`"
|
|
||||||
echo
|
echo
|
||||||
Print_Style "Select a drive to test from:" "$YELLOW"
|
Print_Style "Select a drive to test from:" "$YELLOW"
|
||||||
df=0
|
df=0
|
||||||
@@ -128,6 +125,7 @@ if [ "$1" = "" ]; then
|
|||||||
cd "${ChosenPartition}"
|
cd "${ChosenPartition}"
|
||||||
Print_Style "${ChosenPartition} has been selected:" "$YELLOW"
|
Print_Style "${ChosenPartition} has been selected:" "$YELLOW"
|
||||||
echo
|
echo
|
||||||
|
break
|
||||||
fi
|
fi
|
||||||
done <<< "$drives"
|
done <<< "$drives"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user