Provide option to escape unicode in server.properties

This commit is contained in:
Geoff Bourne committed 2023-11-10 22:46:25 -06:00
1 parent bf621356c1
commit f5c332736d
3 files changed
+7 -1

No files matched your search

+2
View File
@@ -110,11 +110,13 @@ function customizeServerProps {
setPropertiesArgs=(
--definitions "/image/property-definitions.json"
--escape-unicode="${SERVER_PROPERTIES_ESCAPE_UNICODE:-false}"
)
if [[ -v CUSTOM_SERVER_PROPERTIES ]]; then
setPropertiesArgs+=(--custom-properties "$CUSTOM_SERVER_PROPERTIES")
fi
handleDebugMode
if ! mc-image-helper set-properties "${setPropertiesArgs[@]}" "$SERVER_PROPERTIES"; then
log "ERROR: failed to update server.properties"
exit 1