From 146031ed44e62a2f01eda3566e167f3f8726b8b2 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 31 Oct 2014 18:36:41 +0100 Subject: email2irc: correctly truncate message for irc --- bin/email2irc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2