Show errors on warning too

This commit is contained in:
Jonatan Castro 2020-11-26 17:51:06 +11:00
parent b9762441fd
commit b17193131a

View File

@ -16,7 +16,7 @@ jobs:
if ! [[ echo "$OUTPUT" | grep "Expired: 0" ]]; then
.circleci/slack-message.sh "*Checked SSL Certificates*: Expired :x:" "MASTER" $DATE "#FF0000"
elif ! [[ echo "$OUTPUT" | grep "Warning: 0" ]]; then
.circleci/slack-message.sh "*Checked SSL Certificates*: Warnings :warning:" "MASTER" $DATE "#FFFF00"
.circleci/slack-message.sh "*Checked SSL Certificates*: Warnings :warning:" "MASTER" $DATE "#FF0000"
else
.circleci/slack-message.sh "*Checked SSL Certificates*: Success :key:" "MASTER" $DATE "#008000"
fi