Show failed path

This commit is contained in:
Anton Babenko 2018-01-24 13:48:44 +01:00
commit 97769abeb3
2 changed files with 12 additions and 0 deletions

View file

@ -12,5 +12,11 @@ done
for path_uniq in $(echo "${paths[*]}" | tr ' ' '\n' | sort -u); do
pushd "$path_uniq" > /dev/null
terraform validate -check-variables=false
if [[ $? != 0 ]]; then
echo
echo "Failed path: $path_uniq"
echo "================================"
fi
popd > /dev/null
done

View file

@ -12,5 +12,11 @@ done
for path_uniq in $(echo "${paths[*]}" | tr ' ' '\n' | sort -u); do
pushd "$path_uniq" > /dev/null
terraform validate -check-variables=true
if [[ $? != 0 ]]; then
echo
echo "Failed path: $path_uniq"
echo "================================"
fi
popd > /dev/null
done