diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-11-23 15:46:07 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-11-23 15:46:07 +0100 |
commit | 51aa536891730bcec69df38707b2f4cac65d420d (patch) | |
tree | 8e11314993dd4e0211f766924c9a89b29e0cd558 | |
parent | c156aa26b3b6b918b7bf0fe8d83a6f806a2bf266 (diff) | |
download | jenkins.debian.net-51aa536891730bcec69df38707b2f4cac65d420d.tar.xz |
YOLO: sort logically
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | bin/email2irc.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/email2irc.sh b/bin/email2irc.sh index 40287bde..35ba86f8 100755 --- a/bin/email2irc.sh +++ b/bin/email2irc.sh @@ -114,11 +114,11 @@ if [ "$VALID_MAIL" = "true" ] ; then if [ ! -z $CHANNEL ] ; then # format message MESSAGE="$(echo $SUBJECT | cut -d ':' -f1) $MY_LINE" - 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#^Failure#Failed #') " MESSAGE="$(echo $MESSAGE | sed -s 's#^Build failed in Jenkins#Failed #') " + MESSAGE="$(echo $MESSAGE | sed -s 's# See ##') " + MESSAGE="$(echo $MESSAGE | sed -s 's#Changes:##') " + MESSAGE="$(echo $MESSAGE | sed -s 's#/console$##') " # log message echo "Notified #$CHANNEL with $MESSAGE" >> $LOGFILE # notify kgb |