Update storage-test.sh

This commit is contained in:
2025-05-04 10:46:57 -05:00
parent 8820b8101b
commit a3293c2a9f

View File

@@ -115,18 +115,15 @@ if [ "$1" = "" ]; then
echo
read -r -p '#: ' drive_path </dev/tty
df=0
echo "$drives" | while IFS= read -r line ; do
while IFS= read -r line ; do
((df++)); path=$(echo $line | cut -d'%' -f2)
if [ $df -eq $drive_path ]; then
ChosenPartition=${path// }
cd "${ChosenPartition}"
Print_Style "${ChosenPartition} has been selected:" "$YELLOW"
echo
echo "HERE1: '${ChosenPartition}'"
fi
echo "HERE2: '${ChosenPartition}'"
done
echo "HERE3: '${ChosenPartition}'"
done <<< echo "$drives"
else
if [ ! -d "$1" ]; then
Print_Style "Your chosen partition (folder) does not exist! Provide a good one or run without parameters to check the rootfs" "$RED"
@@ -137,7 +134,7 @@ else
fi
fi
echo "HERE4: '${ChosenPartition}'"
echo "HERE: '${ChosenPartition}'"
exit 0
# Get host board information