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