fix attempts

This commit is contained in:
CanbiZ 2025-03-11 15:14:07 +01:00
parent d1fdcd4347
commit 2b75573482

View File

@ -54,7 +54,7 @@ while true; do
fi fi
msg_error "Invalid timezone! Please enter a valid TZ identifier." msg_error "Invalid timezone! Please enter a valid TZ identifier."
((attempts++)) ((attempts++))
if ((attempts >= 3)); then if (($attempts -ge 3)); then
msg_error "Maximum attempts reached. Exiting." msg_error "Maximum attempts reached. Exiting."
exit 1 exit 1
fi fi