mirror of
https://github.com/MinecraftServerControl/mscs.git
synced 2024-11-15 14:58:18 -07:00
Remove extra CR+LF chars from command
This commit is contained in:
parent
7a9608e805
commit
688a74506e
@ -354,7 +354,9 @@ serverRunning() {
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
sendCommand() {
|
sendCommand() {
|
||||||
local COMMAND
|
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
|
echo "$COMMAND" >> $WORLDS_LOCATION/$1/console.in
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user