Remove extra CR+LF chars from command

This commit is contained in:
Jason M. Wood 2014-09-16 12:47:36 -06:00
parent 7a9608e805
commit 688a74506e

View File

@ -354,7 +354,9 @@ serverRunning() {
# ---------------------------------------------------------------------------
sendCommand() {
local COMMAND
COMMAND=$(printf "$2\r")
COMMAND=$(echo "$2" | $PERL -e '
while (<>) { $_ =~ s/[\r\n]+//g; $cmd .= $_; } print "$cmd\r";
')
echo "$COMMAND" >> $WORLDS_LOCATION/$1/console.in
}