Update storage-test.sh
This commit is contained in:
@@ -118,13 +118,12 @@ 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// }
|
||||||
Print_Style "$path has been selected:" "$YELLOW"
|
Print_Style "${path// } has been selected:" "$YELLOW"
|
||||||
echo
|
echo
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
exit 0
|
|
||||||
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user