summaryrefslogtreecommitdiffstats
path: root/bin/email2irc.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-11-23 15:33:07 +0100
committerHolger Levsen <holger@layer-acht.org>2016-11-23 15:33:07 +0100
commitd0a55c2a7a55412f61bce6132038baac7678f359 (patch)
tree6504484f992310ff466ed02d239550ddcbf76f2f /bin/email2irc.sh
parentc6b516414955e9829efe57fa6d761e56113a9e5a (diff)
downloadjenkins.debian.net-d0a55c2a7a55412f61bce6132038baac7678f359.tar.xz
YOLO: remove 'g' from sed commands
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/email2irc.sh')
-rwxr-xr-xbin/email2irc.sh12
1 files 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