Skip to content
Snippets Groups Projects
Commit 195ba793 authored by Florent Thiery's avatar Florent Thiery
Browse files

invert test

parent 73b9d024
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ echo "Sending email to $EMAIL" ...@@ -7,7 +7,7 @@ echo "Sending email to $EMAIL"
echo "This is a test email" | mail -s "Test email from `cat /etc/hostname`" $EMAIL echo "This is a test email" | mail -s "Test email from `cat /etc/hostname`" $EMAIL
sleep 10 sleep 10
grep $EMAIL /var/log/mail.log | grep bounced > /dev/null grep $EMAIL /var/log/mail.log | grep bounced > /dev/null
if [ $? -ne 0 ]; then if [ $? -e 0 ]; then
echo "Sending mail failed" echo "Sending mail failed"
exit 1 exit 1
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment