diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-10-31 18:36:41 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-10-31 18:36:41 +0100 |
commit | 146031ed44e62a2f01eda3566e167f3f8726b8b2 (patch) | |
tree | 0712bf645a051ac0dbf84823952d530ddf534d47 /bin | |
parent | 8ac72cfda7be84acb82dc679df695a4c19cf3b19 (diff) | |
download | jenkins.debian.net-146031ed44e62a2f01eda3566e167f3f8726b8b2.tar.xz |
email2irc: correctly truncate message for irc
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/email2irc.sh | 4 |
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 |