mc: properly handle spaces in MOTD during server properties setup

This commit is contained in:
Geoff Bourne 2018-12-02 17:52:23 -06:00
parent 479be8016a
commit 9b1272edac

View File

@ -36,7 +36,7 @@ if [ ! -e $SERVER_PROPERTIES ]; then
# If not provided, generate a reasonable default message-of-the-day,
# which shows up in the server listing in the client
if [ -z $MOTD ]; then
if [ -z "$MOTD" ]; then
# snapshot is the odd case where we have to look at version to identify that label
if [[ ${ORIGINAL_TYPE} == "VANILLA" && ${VERSION} == "SNAPSHOT" ]]; then
label=SNAPSHOT