Skip to content

Commit

Permalink
Merge pull request #32 from gruntwork-io/yori-fix-tfvalidate
Browse files Browse the repository at this point in the history
Fix terraform-validate hook
  • Loading branch information
yorinasub17 authored Jun 16, 2020
2 parents 6b5c74c + 96f2c4f commit 4373c1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/terraform-validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export PATH=$PATH:/usr/local/bin

for dir in $(echo "$@" | xargs -n1 dirname | sort -u | uniq); do
pushd "$dir" >/dev/null
terraform init -backend=false "$dir"
terraform validate "$dir"
terraform init -backend=false
terraform validate
popd >/dev/null
done

0 comments on commit 4373c1e

Please sign in to comment.