feat: rename pre-commit-terraform to pre-commit-opentofu, pt X

This commit is contained in:
Alexander Sharov 2024-01-17 01:15:52 +01:00
commit a8ef967e92
2 changed files with 4 additions and 4 deletions

View file

@ -47,7 +47,7 @@ function tofu_docs_ {
IFS=";" read -r -a configs <<< "$hook_config"
local hack_tofu_docs
hack_terraform_docs=$(terraform version | sed -n 1p | grep -c 0.12) || true
hack_terraform_docs=$(tofu 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."