mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-20 22:16:53 +00:00
Probably quote content passed to mc-send-to-console (#2093)
This commit is contained in:
1 parent
031e1d759b
commit
d5e0fb23de
1 file changed
+2
-2
@@ -14,9 +14,9 @@ fi
|
|||||||
|
|
||||||
if [ "$(id -u)" = 0 ]; then
|
if [ "$(id -u)" = 0 ]; then
|
||||||
if [[ $(getDistro) == alpine ]]; then
|
if [[ $(getDistro) == alpine ]]; then
|
||||||
exec su-exec minecraft bash -c "echo $* > '${CONSOLE_IN_NAMED_PIPE:-/tmp/minecraft-console-in}'"
|
exec su-exec minecraft bash -c "echo '$*' > '${CONSOLE_IN_NAMED_PIPE:-/tmp/minecraft-console-in}'"
|
||||||
else
|
else
|
||||||
exec gosu minecraft bash -c "echo $* > '${CONSOLE_IN_NAMED_PIPE:-/tmp/minecraft-console-in}'"
|
exec gosu minecraft bash -c "echo '$*' > '${CONSOLE_IN_NAMED_PIPE:-/tmp/minecraft-console-in}'"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "$@" >"${CONSOLE_IN_NAMED_PIPE:-/tmp/minecraft-console-in}"
|
echo "$@" >"${CONSOLE_IN_NAMED_PIPE:-/tmp/minecraft-console-in}"
|
||||||
|
|||||||
Reference in new issue
Block a user