LanguageTool: count ngram prompt retries without tripping errexit

This commit is contained in:
MickLesk
2026-10-27 09:20:01 +01:00
parent ee45ec67d8
commit bcc5fa206b
+1 -1
View File
@@ -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