From 0ae0a948c2d1e66cd49bce454101123f62af6ba5 Mon Sep 17 00:00:00 2001 From: Jose Henrique Date: Sun, 18 May 2025 11:43:55 -0300 Subject: [PATCH] fixing file selection --- scripts-download.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts-download.sh b/scripts-download.sh index d95ecc2..bdebf27 100644 --- a/scripts-download.sh +++ b/scripts-download.sh @@ -111,8 +111,8 @@ FILES=("clean.sh" "backup.sh" "docker-updater.sh") selected_files=() echo -e "${GREY}[i] Select files to download and install on crontab:${NC}" for FILE in "${FILES[@]}"; do - read -p "Do you want to download and install $FILE? \(Y/n\): " choice - if [[ "$choice" == "y" || "$choice" == "Y" || "$choice" == "" ]]; then + read -p "Do you want to download and install $FILE? [Y/n]: " choice + if [[ "$choice" == "y" || "$choice" == "Y" || -z "$choice" ]]; then selected_files+=("$FILE") fi done