Skip to content

Commit

Permalink
fix: Fix regex considering terraform-docs v0.10.0 old (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanstoddard23 authored Sep 24, 2020
1 parent 6b03062 commit d773f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d773f4a

Please sign in to comment.