fix: Pre-commit-terraform terraform_validate hook (#401)

This commit is contained in:
Nicholas Henry 2022-06-21 14:59:41 -06:00 committed by GitHub
commit d9f482c0c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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