From 51aa536891730bcec69df38707b2f4cac65d420d Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 23 Nov 2016 15:46:07 +0100 Subject: YOLO: sort logically Signed-off-by: Holger Levsen --- bin/email2irc.sh | 6 +++--- 1 file 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 -- cgit v1.2.3-70-g09d2