Fixed exit code for terraform 0.11 branch in terraform_docs (#94)

This commit is contained in:
Anton Babenko 2020-02-21 13:47:04 +01:00 committed by GitHub
commit 2ebb28ad16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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."