mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
Fixed exit code for terraform 0.11 branch in terraform_docs (#94)
This commit is contained in:
parent
7f7ce9eebb
commit
2ebb28ad16
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ main() {
|
|||
done
|
||||
|
||||
local hack_terraform_docs
|
||||
hack_terraform_docs=$(terraform version | head -1 | grep -c 0.12)
|
||||
hack_terraform_docs=$(terraform version | head -1 | 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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue