mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
fix: Pre-commit-terraform terraform_validate hook (#401)
This commit is contained in:
parent
598bf2c7ed
commit
d9f482c0c6
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue