summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/email2irc.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/email2irc.sh b/bin/email2irc.sh
index 472616c4..740209ea 100755
--- a/bin/email2irc.sh
+++ b/bin/email2irc.sh
@@ -49,7 +49,8 @@ while read line ; do
if [ "${line:0:5}" = "-----" ] ; then
read line
read line
- MY_LINE=$(read line | cut -d " " -f1-2)
+ MY_LINE=$(read line)
+ MY_LINE=$(echo $MY_LINE | cut -d " " -f1-2)
else
MY_LINE=$(echo $line | tr -d \< | tr -d \>)
fi