Cleaner solution

This commit is contained in:
Dana Merrick 2020-09-03 19:37:10 -04:00
parent dd84550d46
commit c64c5c8d60

View file

@ -988,17 +988,18 @@ CallStatusAPI() {
else
# Failure
MESSAGE="${FAIL_MSG}"
# make sure we honor DISABLE_ERRORS
if [ "${DISABLE_ERRORS}" == "true" ]; then
STATUS="success"
fi
fi
##########################################################
# Check to see if were enabled for multi Status mesaages #
##########################################################
if [ "${MULTI_STATUS}" == "true" ] && [ -n "${GITHUB_TOKEN}" ] && [ -n "${GITHUB_REPOSITORY}" ]; then
# make sure we honor DISABLE_ERRORS
if [ "${DISABLE_ERRORS}" == "true" ]; then
STATUS="success"
fi
##############################################
# Call the status API to create status check #
##############################################