mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
Show failed path
This commit is contained in:
parent
97769abeb3
commit
93394c482a
2 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ for path_uniq in $(echo "${paths[*]}" | tr ' ' '\n' | sort -u); do
|
|||
pushd "$path_uniq" > /dev/null
|
||||
terraform validate -check-variables=false
|
||||
|
||||
if [[ $? != 0 ]]; then
|
||||
if [[ "$?" -ne 0 ]]; then
|
||||
echo
|
||||
echo "Failed path: $path_uniq"
|
||||
echo "================================"
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ for path_uniq in $(echo "${paths[*]}" | tr ' ' '\n' | sort -u); do
|
|||
pushd "$path_uniq" > /dev/null
|
||||
terraform validate -check-variables=true
|
||||
|
||||
if [[ $? != 0 ]]; then
|
||||
if [[ "$?" -ne 0 ]]; then
|
||||
echo
|
||||
echo "Failed path: $path_uniq"
|
||||
echo "================================"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue