From 6965e3e2ecb1cd40c8a8baa999f1f1cf3dc1daf2 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 27 Jan 2026 13:47:48 +0100 Subject: [PATCH] fix: use safe arithmetic to avoid exit code 1 from ((attempts++)) when attempts=0 --- misc/core.func | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/core.func b/misc/core.func index 36356ca52..e14ba3c22 100644 --- a/misc/core.func +++ b/misc/core.func @@ -1157,7 +1157,7 @@ prompt_input_required() { # Interactive prompt - loop until non-empty input or use fallback on timeout local attempts=0 while [[ -z "$response" ]]; do - ((attempts++)) + attempts=$((attempts + 1)) if [[ $attempts -gt 3 ]]; then echo -e "${YW}Too many empty inputs - using fallback: ${fallback}${CL}" >&2