[Qa-jenkins-scm] [jenkins.debian.net] 02/02: YOLO: remove 'g' from sed commands

Holger Levsen holger at layer-acht.org
Wed Nov 23 14:33:13 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit d0a55c2a7a55412f61bce6132038baac7678f359
Author: Holger Levsen <holger at layer-acht.org>
Date:   Wed Nov 23 15:33:07 2016 +0100

    YOLO: remove 'g' from sed commands
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/email2irc.sh | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/bin/email2irc.sh b/bin/email2irc.sh
index 3870967..df8a6f9 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list