LanguageTool: count ngram prompt retries without tripping errexit (#18258)

This commit is contained in:
CanbiZ (MickLesk)
2026-10-27 09:33:23 +01:00
committed by GitHub
parent c3ba64bf0c
commit fd12b4c1db

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