[Qa-jenkins-scm] [jenkins.debian.net] 01/01: properly deal with quoted-printable continuation lines

Holger Levsen holger at layer-acht.org
Mon Nov 28 08:31:04 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 d6727d7f74eafd62219379a7cc7f17b12817f975
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Nov 28 09:30:49 2016 +0100

    properly deal with quoted-printable continuation lines
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/email2irc.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/email2irc.sh b/bin/email2irc.sh
index 2a5ed1f..605372d 100755
--- a/bin/email2irc.sh
+++ b/bin/email2irc.sh
@@ -88,8 +88,8 @@ while read -r line ; do
 			# deal with quoted-printable continuation lines: 2nd line/time
 			# if $MY_LINE ends with '=', then append the next line to $MY_LINE,
 			# changing the '=' to a single space.
-			MY_2ND_LINE=$(echo $MY_2ND_LINE | sed -s 's#=$# #')
-			MY_LINE="$MY_2ND_LINE $MY_LINE"
+			MY_2ND_LINE=$(echo $MY_2ND_LINE | sed -s 's#=$##')
+			MY_LINE="${MY_2ND_LINE}$MY_LINE"
 			debug123 "#5" MY_LINE $MY_LINE
 			debug123 "#6" MY_2ND_LINE $MY_2ND_LINE
 		fi

-- 
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