Skip to content

Commit d773f4a

Browse files
fix: Fix regex considering terraform-docs v0.10.0 old (antonbabenko#151)
1 parent 6b03062 commit d773f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

terraform_docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ terraform_docs_() {
6060
fi
6161

6262
local is_old_terraform_docs
63-
is_old_terraform_docs=$(terraform-docs version | grep -o "v0.[1-7]" | tail -1) || true
63+
is_old_terraform_docs=$(terraform-docs version | grep -o "v0.[1-7]\." | tail -1) || true
6464

6565
if [[ -z "$is_old_terraform_docs" ]]; then # Using terraform-docs 0.8+ (preferred)
6666

0 commit comments

Comments
 (0)