From b289c496bb7a3e3a2c922c9457006694be606147 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 11 Mar 2025 15:28:19 +0100 Subject: [PATCH] Update npmplus-install.sh --- install/npmplus-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install/npmplus-install.sh b/install/npmplus-install.sh index 9865c0809..f8521df22 100644 --- a/install/npmplus-install.sh +++ b/install/npmplus-install.sh @@ -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