diff --git a/terraform_validate_with_variables.sh b/terraform_validate_with_variables.sh index 01d5536f8..355a91372 100755 --- a/terraform_validate_with_variables.sh +++ b/terraform_validate_with_variables.sh @@ -27,6 +27,6 @@ for path_uniq in $(echo "${paths[*]}" | tr ' ' '\n' | sort -u); do popd > /dev/null done -if [[ -n "${error}" ]] ; then +if [[ "${error}" -ne 0 ]] ; then exit 1 fi