Skip to content

Commit

Permalink
Fixed exit code for terraform 0.11 branch in terraform_docs (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbabenko authored Feb 21, 2020
1 parent 7f7ce9e commit 2ebb28a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 2ebb28a

Please sign in to comment.