Fix if/else
This commit is contained in:
parent
e66e447108
commit
3ab96561d0
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user