From d0a55c2a7a55412f61bce6132038baac7678f359 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 23 Nov 2016 15:33:07 +0100 Subject: YOLO: remove 'g' from sed commands Signed-off-by: Holger Levsen --- bin/email2irc.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/email2irc.sh b/bin/email2irc.sh index 38709676..df8a6f90 100755 --- a/bin/email2irc.sh +++ b/bin/email2irc.sh @@ -114,12 +114,12 @@ 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:##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') " - MESSAGE="$(echo $MESSAGE | sed -s 's#Build failed #Failed #g') " + 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# in Jenkins ##') " + MESSAGE="$(echo $MESSAGE | sed -s 's#Failure #Failed #') " + MESSAGE="$(echo $MESSAGE | sed -s 's#Build failed #Failed #') " # log message echo "Notified #$CHANNEL with $MESSAGE" >> $LOGFILE # notify kgb -- cgit v1.2.3-70-g09d2