summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-31 18:36:41 +0100
committerHolger Levsen <holger@layer-acht.org>2014-10-31 18:36:41 +0100
commit146031ed44e62a2f01eda3566e167f3f8726b8b2 (patch)
tree0712bf645a051ac0dbf84823952d530ddf534d47 /bin
parent8ac72cfda7be84acb82dc679df695a4c19cf3b19 (diff)
downloadjenkins.debian.net-146031ed44e62a2f01eda3566e167f3f8726b8b2.tar.xz
email2irc: correctly truncate message for irc
Diffstat (limited to 'bin')
-rwxr-xr-xbin/email2irc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/email2irc.sh b/bin/email2irc.sh
index 2e6c8a8e..294fcbfa 100755
--- a/bin/email2irc.sh
+++ b/bin/email2irc.sh
@@ -49,8 +49,8 @@ while read line ; do
if [ "${line:0:5}" = "-----" ] ; then
read line
read line
- MY_LINE=$(read line)
- MY_LINE=$(echo $MY_LINE | cut -d " " -f1-2)
+ read line
+ MY_LINE=$(echo $line | cut -d " " -f1-2)
else
MY_LINE=$(echo $line | tr -d \< | tr -d \>)
fi