WIP: Cleans up new line carriage return characters #1

Closed
ffuentes wants to merge 1 commits from ffuentes/gab:master into master
1 changed files with 2 additions and 1 deletions

3
gab
View File

@ -27,7 +27,8 @@ else
echo "Must pass a quoted string w/ the msg flag"
exit 1
else
echo "$USER > $2" >> $file_path
msg=$(echo $2 | sed -e 's/\r//g')
echo "$USER > $msg" >> $file_path
if [ $? -eq 0 ]
then
echo "Successfully added text to chatlog"