diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-11-23 15:32:17 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-11-23 15:32:17 +0100 |
commit | c6b516414955e9829efe57fa6d761e56113a9e5a (patch) | |
tree | a8e88d2dac91adef7f9ee3485fc2ec68a96ba2f0 /bin/email2irc.sh | |
parent | 30877cfbb7ed1d9427d16a5e23594ce1ef909a3a (diff) | |
download | jenkins.debian.net-c6b516414955e9829efe57fa6d761e56113a9e5a.tar.xz |
YOLO: refactor
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/email2irc.sh')
-rwxr-xr-x | bin/email2irc.sh | 4 |
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') " |