Skip to content

Commit

Permalink
fix: make terraform_docs Windows compatible (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
matiaszilli committed Sep 24, 2020
1 parent cc4e5e8 commit 81770aa
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 @@ -52,7 +52,7 @@ terraform_docs_() {
local -a -r files=("$@")

local hack_terraform_docs
hack_terraform_docs=$(terraform version | head -1 | grep -c 0.12) || true
hack_terraform_docs=$(terraform version | sed -n 1p | grep -c 0.12) || true

if [[ ! $(command -v terraform-docs) ]]; then
echo "ERROR: terraform-docs is required by terraform_docs pre-commit hook but is not installed or in the system's PATH."
Expand Down

0 comments on commit 81770aa

Please sign in to comment.