From bcc5fa206bc67f376dd3196ead5aaba4374c7e03 Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Tue, 27 Oct 2026 09:20:01 +0100 Subject: [PATCH] LanguageTool: count ngram prompt retries without tripping errexit --- 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