From c6b516414955e9829efe57fa6d761e56113a9e5a Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 23 Nov 2016 15:32:17 +0100 Subject: YOLO: refactor Signed-off-by: Holger Levsen --- bin/email2irc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/email2irc.sh b/bin/email2irc.sh index 20dc8f50..38709676 100755 --- a/bin/email2irc.sh +++ b/bin/email2irc.sh @@ -113,7 +113,9 @@ if [ "$VALID_MAIL" = "true" ] ; then # only notify if there is a channel to notify if [ ! -z $CHANNEL ] ; then # format message - MESSAGE="$(echo $SUBJECT | cut -d ':' -f1) $(echo $MY_LINE|sed -s 's#Changes:##g') " + MESSAGE="$(echo $SUBJECT | cut -d ':' -f1) $MY_LINE" + MESSAGE="$(echo $MESSAGE | sed -s 's#Changes:##g') " + MESSAGE="$(echo $MESSAGE | sed -s 's#/console$##g') " MESSAGE="$(echo $MESSAGE | sed -s 's# See ##g') " MESSAGE="$(echo $MESSAGE | sed -s 's# in Jenkins ##g') " MESSAGE="$(echo $MESSAGE | sed -s 's#Failure #Failed #g') " -- cgit v1.2.3-54-g00ecf