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

do not print grep output, refs #20590

parent 0add1eee
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,10 @@
# envoyer un mail contenant un truc random
RAND="$RANDOM"
EMAIL="deployment+$RAND@ubicast.eu"
echo "Sending email to $EMAIL"
echo "This is a test email" | mail -s "Test email from `cat /etc/hostname`" $EMAIL
sleep 10
grep $EMAIL /var/log/mail.log | grep bounced
grep $EMAIL /var/log/mail.log | grep bounced > /dev/null
if [ $? -ne 0 ]; then
echo "Sending mail failed"
exit 1
......
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