From a3771b5119231be9677934b88ee47203e9cb5a90 Mon Sep 17 00:00:00 2001 From: Tyler Christiansen Date: Fri, 1 Mar 2019 00:48:50 -0800 Subject: [PATCH] fix check for errors at the end (#35) --- terraform_validate_with_variables.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform_validate_with_variables.sh b/terraform_validate_with_variables.sh index 01d5536..355a913 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