Update storage-test.sh

This commit is contained in:
2025-05-04 10:10:18 -05:00
parent 8f2555ae25
commit 990651b384

View File

@@ -105,15 +105,19 @@ IO4kRandWrite=0
ChosenPartition=""
if [ "$1" = "" ]; then
echo
Print_Style "Select a partition to test from:" "$YELLOW"
Print_Style "Select a drive to test from:" "$YELLOW"
df=0; declare -A drive_sel
echo "$(/bin/df -kTh | grep ext4)" | while IFS= read -r line ; do
((df++))
path=$(echo $line | cut -d'%' -f2)
drive_sel[$df]="${path// }"
Print_Style "$df) ${path// }" "$POWDER_BLUE"
Print_Style "$df) ${path// }" "$CYAN"
done
echo
read -r -p 'Drive #: ' drive_path </dev/tty
echo
echo "cd ${drive_sel[${drive_path}]}"
exit 0
cd \
else