mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 07:31:05 -05:00
fixing logic
This commit is contained in:
parent
dc881c2d1a
commit
2f7f03efe3
1 changed files with 4 additions and 8 deletions
|
@ -1119,8 +1119,6 @@ GetValidationInfo()
|
|||
DISABLE_ERRORS="false"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
############################
|
||||
# Get the run verbose flag #
|
||||
############################
|
||||
|
@ -1898,15 +1896,13 @@ Footer()
|
|||
##################################
|
||||
# Exit with 0 if errors disabled #
|
||||
##################################
|
||||
|
||||
if ${DISABLE_ERRORS} then
|
||||
if [ "$DISABLE_ERRORS" == "true" ]; then
|
||||
echo "WARN! Exiting with exit code:[0] as:[DISABLE_ERRORS] was set to:[$DISABLE_ERRORS]"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
###############################
|
||||
# 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_XML" -ne 0 ] || \
|
||||
[ "$ERRORS_FOUND_MARKDOWN" -ne 0 ] || \
|
||||
|
|
Loading…
Reference in a new issue