Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxymVlasov authored Aug 1, 2024
1 parent 6dc868b commit 10f3d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/terraform_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function terraform_docs_ {
IFS=";" read -r -a configs <<< "$hook_config"

local hack_terraform_docs
hack_terraform_docs=$(terraform version 2> /dev/null | sed -n 1p | grep -c 0.12) || $(tofu version 2> /dev/null | echo 0) || true
hack_terraform_docs=$(terraform version 2> /dev/null | sed -n 1p | grep -c 0.12 || tofu version 2> /dev/null | echo 0) || 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 10f3d02

Please sign in to comment.