Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Change terraform_validate hook functionality for subdirectories with terraform files #100

Merged
merged 5 commits into from
Apr 4, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Neglected to change the terraform validate call to use the default of…
… the

current directory.
  • Loading branch information
mcdonnnj committed Mar 31, 2020
commit 8e8c2cbc7d3fc07dab8cb9ab6b9cf8704d8c1489
2 changes: 1 addition & 1 deletion terraform_validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ for path_uniq in $(echo "${paths[*]}" | tr ' ' '\n' | sort -u); do

if [[ -n "$(find . -maxdepth 1 -name '*.tf' -print -quit)" ]]; then
cd "$path_uniq"
if ! terraform validate $path_uniq; then
if ! terraform validate; then
error=1
echo
echo "Failed path: $path_uniq"
Expand Down