From bfc9da64a6eb9106f47fedc89fc6bc302caeeaba Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 4 May 2025 10:30:07 -0500 Subject: [PATCH] Update storage-test.sh --- storage-test.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/storage-test.sh b/storage-test.sh index c1472b2..048bc0f 100755 --- a/storage-test.sh +++ b/storage-test.sh @@ -118,13 +118,12 @@ 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 - Print_Style "$path has been selected:" "$YELLOW" + cd ${path// } + Print_Style "${path// } has been selected:" "$YELLOW" echo break fi done - exit 0 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"