From c156aa26b3b6b918b7bf0fe8d83a6f806a2bf266 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 23 Nov 2016 15:40:23 +0100 Subject: YOLO: fix regex Signed-off-by: Holger Levsen --- bin/email2irc.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/email2irc.sh b/bin/email2irc.sh index df8a6f90..40287bde 100755 --- a/bin/email2irc.sh +++ b/bin/email2irc.sh @@ -117,9 +117,8 @@ if [ "$VALID_MAIL" = "true" ] ; then MESSAGE="$(echo $MESSAGE | sed -s 's#Changes:##') " MESSAGE="$(echo $MESSAGE | sed -s 's#/console$##') " MESSAGE="$(echo $MESSAGE | sed -s 's# See ##') " - MESSAGE="$(echo $MESSAGE | sed -s 's# in Jenkins ##') " - MESSAGE="$(echo $MESSAGE | sed -s 's#Failure #Failed #') " - MESSAGE="$(echo $MESSAGE | sed -s 's#Build failed #Failed #') " + MESSAGE="$(echo $MESSAGE | sed -s 's#^Failure#Failed #') " + MESSAGE="$(echo $MESSAGE | sed -s 's#^Build failed in Jenkins#Failed #') " # log message echo "Notified #$CHANNEL with $MESSAGE" >> $LOGFILE # notify kgb -- cgit v1.2.3-70-g09d2