Retain declared version for placeholder usage (#2486)

This commit is contained in:
Geoff Bourne authored and GitHub committed 2023-11-12 16:10:03 -06:00
1 parent 37a5d50f70
commit 85a957fe6f
3 files changed
+5 -4

No files matched your search

+2 -2
View File
@@ -145,10 +145,10 @@ if ! isTrue "${SKIP_SERVER_PROPERTIES}"; then
# which shows up in the server listing in the client
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
if [[ ${DECLARED_TYPE} == "VANILLA" && ${VERSION} == "SNAPSHOT" ]]; then
label=SNAPSHOT
else
label=${ORIGINAL_TYPE}
label=${DECLARED_TYPE}
fi
# Convert label to title-case