Change errors

This commit is contained in:
Jonatan Castro 2020-11-26 17:50:36 +11:00
parent cbd0e81210
commit b9762441fd

View File

@ -13,13 +13,13 @@ jobs:
sudo pip install -r requirements.txt
OUTPUT=$(./ssl_checker.py -f ./hosts_to_check)
echo "$OUTPUT"
if ! [[ echo "$OUTPUT" | grep "Warning: 0" ]]; then
.circleci/slack-message.sh "*Checked SSL Certificates*: Warnings :warning:" "MASTER" $DATE "#FFFF00"
fi
if ! [[ echo "$OUTPUT" | grep "Expired: 0" ]]; then
.circleci/slack-message.sh "*Checked SSL Certificates*: Expired :x:" "MASTER" $DATE "#FF0000"
fi
elif ! [[ echo "$OUTPUT" | grep "Warning: 0" ]]; then
.circleci/slack-message.sh "*Checked SSL Certificates*: Warnings :warning:" "MASTER" $DATE "#FFFF00"
else
.circleci/slack-message.sh "*Checked SSL Certificates*: Success :key:" "MASTER" $DATE "#008000"
fi
workflows:
version: 2