Update npmplus-install.sh

This commit is contained in:
CanbiZ 2025-03-11 15:28:19 +01:00
parent 2b75573482
commit b289c496bb

View File

@ -53,8 +53,9 @@ while true; do
break
fi
msg_error "Invalid timezone! Please enter a valid TZ identifier."
((attempts++))
if (($attempts -ge 3)); then
attempts=$((attempts + 1))
if [[ "$attempts" -ge 3 ]]; then
msg_error "Maximum attempts reached. Exiting."
exit 1
fi