fix: Set default MOTD if unset (#1265)

Co-authored-by: Geoff Bourne <itzgeoff@gmail.com>
This commit is contained in:
Drew Brown
2022-01-10 06:56:28 -06:00
committed by GitHub
parent 7e2937aa8d
commit 4f87662664

View File

@@ -48,7 +48,7 @@ function customizeServerProps {
# If not provided, generate a reasonable default message-of-the-day,
# which shows up in the server listing in the client
if ! [ -v "$MOTD" ]; then
if ! [ -v 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