From 5cb89839afcedf5a60370e21a5095c0f9f770429 Mon Sep 17 00:00:00 2001 From: Jose Henrique Date: Sat, 17 May 2025 21:48:10 -0300 Subject: [PATCH] fixing small issue with script --- scripts-download.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts-download.sh b/scripts-download.sh index b1402c8..d95ecc2 100644 --- a/scripts-download.sh +++ b/scripts-download.sh @@ -109,10 +109,10 @@ FILES=("clean.sh" "backup.sh" "docker-updater.sh") # Prompt user to select files to download selected_files=() -echo -e "${GREY}[i] Select files to download and install on crontab:"${NC}" +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" ]]; then + read -p "Do you want to download and install $FILE? \(Y/n\): " choice + if [[ "$choice" == "y" || "$choice" == "Y" || "$choice" == "" ]]; then selected_files+=("$FILE") fi done