fixing logic

This commit is contained in:
Lucas Gravley 2020-06-19 12:39:08 -05:00
parent dc881c2d1a
commit 2f7f03efe3

View file

@ -1119,8 +1119,6 @@ GetValidationInfo()
DISABLE_ERRORS="false" DISABLE_ERRORS="false"
fi fi
############################ ############################
# Get the run verbose flag # # Get the run verbose flag #
############################ ############################
@ -1898,15 +1896,13 @@ Footer()
################################## ##################################
# Exit with 0 if errors disabled # # Exit with 0 if errors disabled #
################################## ##################################
if [ "$DISABLE_ERRORS" == "true" ]; then
if ${DISABLE_ERRORS} then echo "WARN! Exiting with exit code:[0] as:[DISABLE_ERRORS] was set to:[$DISABLE_ERRORS]"
exit 0 exit 0
fi
############################### ###############################
# Exit with 1 if errors found # # Exit with 1 if errors found #
############################### ###############################
if [ "$ERRORS_FOUND_YML" -ne 0 ] || \ elif [ "$ERRORS_FOUND_YML" -ne 0 ] || \
[ "$ERRORS_FOUND_JSON" -ne 0 ] || \ [ "$ERRORS_FOUND_JSON" -ne 0 ] || \
[ "$ERRORS_FOUND_XML" -ne 0 ] || \ [ "$ERRORS_FOUND_XML" -ne 0 ] || \
[ "$ERRORS_FOUND_MARKDOWN" -ne 0 ] || \ [ "$ERRORS_FOUND_MARKDOWN" -ne 0 ] || \