Show failed path

This commit is contained in:
Anton Babenko 2018-01-24 13:57:41 +01:00
commit 93394c482a
2 changed files with 2 additions and 2 deletions

View file

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

View file

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