mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-27 23:30:40 +01:00
LanguageTool: count ngram prompt retries without tripping errexit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user