Skip to content

Commit

Permalink
fix: Pre-commit-terraform terraform_validate hook (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
nshenry03 committed Jun 21, 2022
1 parent 598bf2c commit d9f482c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/terraform_validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function terraform_validate_ {

if [[ -n "$(find "$dir_path" -maxdepth 1 -name '*.tf' -print -quit)" ]]; then

pushd "$(cd "$dir_path" && pwd -P)" > /dev/null
pushd "$(cd "$dir_path" > /dev/null && pwd -P)" > /dev/null

if [ ! -d .terraform ]; then
set +e
Expand Down

0 comments on commit d9f482c

Please sign in to comment.