Skip to content

Commit d9f482c

Browse files
authored
fix: Pre-commit-terraform terraform_validate hook (antonbabenko#401)
1 parent 598bf2c commit d9f482c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/terraform_validate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function terraform_validate_ {
111111

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

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

116116
if [ ! -d .terraform ]; then
117117
set +e

0 commit comments

Comments
 (0)