summaryrefslogtreecommitdiffstats
path: root/bin/email2irc.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-11-23 15:32:17 +0100
committerHolger Levsen <holger@layer-acht.org>2016-11-23 15:32:17 +0100
commitc6b516414955e9829efe57fa6d761e56113a9e5a (patch)
treea8e88d2dac91adef7f9ee3485fc2ec68a96ba2f0 /bin/email2irc.sh
parent30877cfbb7ed1d9427d16a5e23594ce1ef909a3a (diff)
downloadjenkins.debian.net-c6b516414955e9829efe57fa6d761e56113a9e5a.tar.xz
YOLO: refactor
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/email2irc.sh')
-rwxr-xr-xbin/email2irc.sh4
1 files changed, 3 insertions, 1 deletions
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') "