From c24fa52569fa680bd8994909cc042de4f2261fae Mon Sep 17 00:00:00 2001 From: Mar Alegre Date: Mon, 12 Oct 2020 15:25:54 -0400 Subject: [PATCH] minor changes to pdm-shell --- bin/pdm-shell | 6 ++++-- src/mcbe/assets/minecraft/server.properties | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/pdm-shell b/bin/pdm-shell index 899cc62..af7da54 100755 --- a/bin/pdm-shell +++ b/bin/pdm-shell @@ -5,12 +5,14 @@ if [[ -z $1 || $1 == "-h" || $1 == "--help" ]]; then Runs a bash shell on the given container. If second argument is omitted, an interactive login shell is launched. If second argument -is given, the string is interpreted as a command and executed." +is given, the string is interpreted as a command and executed directly. +To ensure that any shell syntax is evaluated in the container shell +instead of the local shell, wrap your command in single quotes." exit 1 fi if [[ -z $2 ]]; then podman exec -it $1 bash -l else - podman exec -it $1 bash -c "$2" + podman exec -it $1 bash -c "${*:2}" fi diff --git a/src/mcbe/assets/minecraft/server.properties b/src/mcbe/assets/minecraft/server.properties index 945783f..0536b6e 100644 --- a/src/mcbe/assets/minecraft/server.properties +++ b/src/mcbe/assets/minecraft/server.properties @@ -36,7 +36,7 @@ server-portv6=19133 # Which IPv6 port the server should listen to. # Allowed values: Integers in the range [1, 65535] -view-distance=60 +view-distance=64 # The maximum allowed view distance in number of chunks. # Allowed values: Any positive integer.