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