From 69ea24a8eecdcd66a8b0a2494324ee0c554aa21b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 4 May 2025 10:33:19 -0500 Subject: [PATCH] Update storage-test.sh --- storage-test.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/storage-test.sh b/storage-test.sh index 9556760..4cb8da1 100755 --- a/storage-test.sh +++ b/storage-test.sh @@ -118,11 +118,10 @@ if [ "$1" = "" ]; then echo "$drives" | while IFS= read -r line ; do ((df++)); path=$(echo $line | cut -d'%' -f2) if [ $df -eq $drive_path ]; then - cd "${path// }" - ls -l - Print_Style "${path// } has been selected:" "$YELLOW" + ChosenPartition="${path// }" + cd "$ChosenPartition" + Print_Style "$ChosenPartition has been selected:" "$YELLOW" echo - exit 0 break fi done