fixing file selection
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 2s

This commit is contained in:
Jose Henrique 2025-05-18 11:43:55 -03:00
parent 5cb89839af
commit 0ae0a948c2

View File

@ -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