mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-07-14 20:44:54 +00:00
@@ -9,9 +9,9 @@ if [[ ${cmd} == "ping" ]]; then
|
|||||||
IFS=':'
|
IFS=':'
|
||||||
read -a parts <<< "${addr}"
|
read -a parts <<< "${addr}"
|
||||||
if [[ ${#parts[*]} -gt 1 ]]; then
|
if [[ ${#parts[*]} -gt 1 ]]; then
|
||||||
echo mc-monitor status --host ${parts[0]} --port ${parts[1]}
|
exec mc-monitor status --host ${parts[0]} --port ${parts[1]}
|
||||||
else
|
else
|
||||||
echo mc-monitor status --host ${parts[0]}
|
exec mc-monitor status --host ${parts[0]}
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "ERROR can only shim the 'ping' command"
|
echo "ERROR can only shim the 'ping' command"
|
||||||
|
|||||||
Reference in New Issue
Block a user