From fd12b4c1dbfbd353dbebcaa310b62b1b2370ef71 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 27 Oct 2026 09:33:23 +0100 Subject: [PATCH] LanguageTool: count ngram prompt retries without tripping errexit (#18258) --- install/languagetool-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/languagetool-install.sh b/install/languagetool-install.sh index b545a6f68..6f3f002ad 100644 --- a/install/languagetool-install.sh +++ b/install/languagetool-install.sh @@ -41,7 +41,7 @@ while [[ $attempt -lt $max_attempts ]]; do fi if [[ "$lang_code" =~ [[:space:]] ]]; then - ((attempt++)) + attempt=$((attempt + 1)) remaining=$((max_attempts - attempt)) lang_code="" if [[ $remaining -gt 0 ]]; then