Fix if/else
This commit is contained in:
parent
e66e447108
commit
3ab96561d0
@ -13,10 +13,10 @@ jobs:
|
||||
sudo pip install -r requirements.txt
|
||||
OUTPUT=$(./ssl_checker.py -f ./hosts_to_check)
|
||||
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"
|
||||
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"
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user