Update storage-test.sh

This commit is contained in:
2025-05-04 10:32:07 -05:00
parent bfc9da64a6
commit e7306660ec

View File

@@ -118,20 +118,22 @@ if [ "$1" = "" ]; then
echo "$drives" | while IFS= read -r line ; do echo "$drives" | while IFS= read -r line ; do
((df++)); path=$(echo $line | cut -d'%' -f2) ((df++)); path=$(echo $line | cut -d'%' -f2)
if [ $df -eq $drive_path ]; then if [ $df -eq $drive_path ]; then
cd ${path// } cd "${path// }"
ls -l
Print_Style "${path// } has been selected:" "$YELLOW" Print_Style "${path// } has been selected:" "$YELLOW"
echo echo
exit 0
break break
fi fi
done done
else else
if [ ! -d "$1" ]; then 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" Print_Style "Your chosen partition (folder) does not exist! Provide a good one or run without parameters to check the rootfs" "$RED"
exit 1 exit 1
else else
ChosenPartition="$1" ChosenPartition="$1"
cd "$ChosenPartition" cd "$ChosenPartition"
fi fi
fi fi
# Get host board information # Get host board information