Fix if/else

This commit is contained in:
Jonatan Castro 2020-11-26 18:07:36 +11:00
parent e66e447108
commit 3ab96561d0

View File

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