summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/email2irc.sh5
1 files changed, 2 insertions, 3 deletions
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