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