We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc4e5e8 commit 81770aaCopy full SHA for 81770aa
terraform_docs.sh
@@ -52,7 +52,7 @@ terraform_docs_() {
52
local -a -r files=("$@")
53
54
local hack_terraform_docs
55
- 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
56
57
if [[ ! $(command -v terraform-docs) ]]; then
58
echo "ERROR: terraform-docs is required by terraform_docs pre-commit hook but is not installed or in the system's PATH."
0 commit comments