This commit is contained in:
Lucas Gravley 2020-03-11 14:21:42 -05:00
parent 6d83c17b1b
commit 5c33868fe4

View file

@ -130,7 +130,7 @@ ERRORS_FOUND_STANDARD=0 # Count of errors found
ERRORS_FOUND_ESLINT=0 # Count of errors found ERRORS_FOUND_ESLINT=0 # Count of errors found
ERRORS_FOUND_DOCKER=0 # Count of errors found ERRORS_FOUND_DOCKER=0 # Count of errors found
ERRORS_FOUND_GO=0 # Count of errors found ERRORS_FOUND_GO=0 # Count of errors found
ERRORS_FOUND_TERRARFORM=0 # Count of errors found ERRORS_FOUND_TERRAFORM=0 # Count of errors found
################################################################################ ################################################################################
########################## FUNCTIONS BELOW ##################################### ########################## FUNCTIONS BELOW #####################################
@ -1527,21 +1527,21 @@ Footer()
############################### ###############################
# Exit with 1 if errors found # # Exit with 1 if errors found #
############################### ###############################
if [ $ERRORS_FOUND_YML -ne 0 ] || \ if [ "$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 ] || \
[ $ERRORS_FOUND_BASH -ne 0 ] || \ [ "$ERRORS_FOUND_BASH" -ne 0 ] || \
[ $ERRORS_FOUND_PERL -ne 0 ] || \ [ "$ERRORS_FOUND_PERL" -ne 0 ] || \
[ $ERRORS_FOUND_PYTHON -ne 0 ] || \ [ "$ERRORS_FOUND_PYTHON" -ne 0 ] || \
[ $ERRORS_FOUND_COFFEESCRIPT -ne 0 ] || \ [ "$ERRORS_FOUND_COFFEESCRIPT" -ne 0 ] || \
[ $ERRORS_FOUND_ANSIBLE -ne 0 ] || \ [ "$ERRORS_FOUND_ANSIBLE" -ne 0 ] || \
[ $ERRORS_FOUND_ESLINT -ne 0 ] || \ [ "$ERRORS_FOUND_ESLINT" -ne 0 ] || \
[ $ERRORS_FOUND_STANDARD -ne 0 ] || \ [ "$ERRORS_FOUND_STANDARD" -ne 0 ] || \
[ $ERRORS_FOUND_DOCKER -ne 0 ] || \ [ "$ERRORS_FOUND_DOCKER" -ne 0 ] || \
[ $ERRORS_FOUND_GO -ne 0 ] || \ [ "$ERRORS_FOUND_GO" -ne 0 ] || \
[ $ERRORS_FOUND_TERRAFORM -ne 0 ] || \ [ "$ERRORS_FOUND_TERRAFORM" -ne 0 ] || \
[ $ERRORS_FOUND_RUBY -ne 0 ]; then [ "$ERRORS_FOUND_RUBY" -ne 0 ]; then
# Failed exit # Failed exit
echo "Exiting with errors found!" echo "Exiting with errors found!"
exit 1 exit 1