summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-11-23 15:10:35 +0100
committerHolger Levsen <holger@layer-acht.org>2016-11-23 15:10:35 +0100
commit699735364f358cf85181ccc31573e184dcfaf75c (patch)
tree873584216f3bc45343fa58158ea847b1cc40197c
parent624ebe962e9ee135ce98d00ced3d0c90c266e016 (diff)
downloadjenkins.debian.net-699735364f358cf85181ccc31573e184dcfaf75c.tar.xz
YOLO: improve irc message
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xbin/email2irc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/email2irc.sh b/bin/email2irc.sh
index 1da5f410..0eaebb96 100755
--- a/bin/email2irc.sh
+++ b/bin/email2irc.sh
@@ -113,8 +113,8 @@ if [ "$VALID_MAIL" = "true" ] ; then
# only notify if there is a channel to notify
if [ ! -z $CHANNEL ] ; then
# log message
- echo "#$CHANNEL: $SUBJECT. $MY_LINE" >> $LOGFILE
- MESSAGE="$SUBJECT. $MY_LINE"
+ MESSAGE="$(echo $SUBJECT | cut -d ':' -f1) $(echo $MY_LINE|sed -s 's#Changes:##g') "
+ echo "#$CHANNEL: $MESSAGE" >> $LOGFILE
# notify kgb
kgb-client --conf /srv/jenkins/kgb/$CHANNEL.conf --relay-msg "$MESSAGE" && echo "kgb informed successfully." >> $LOGFILE
echo >> $LOGFILE