diff --git a/terraform_docs.sh b/terraform_docs.sh index 5931943dc..ee1ff90e4 100755 --- a/terraform_docs.sh +++ b/terraform_docs.sh @@ -60,7 +60,7 @@ terraform_docs_() { fi local is_old_terraform_docs - is_old_terraform_docs=$(terraform-docs version | grep -o "v0.[1-7]" | tail -1) || true + is_old_terraform_docs=$(terraform-docs version | grep -o "v0.[1-7]\." | tail -1) || true if [[ -z "$is_old_terraform_docs" ]]; then # Using terraform-docs 0.8+ (preferred)