Fail startup if server properties processing fails (#2460)

This commit is contained in:
Geoff Bourne 2023-11-01 19:08:31 -05:00 committed by GitHub
parent 78fd5457d4
commit 377273e5a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,10 @@ function customizeServerProps {
setPropertiesArgs+=(--custom-properties "$CUSTOM_SERVER_PROPERTIES")
fi
mc-image-helper set-properties "${setPropertiesArgs[@]}" "$SERVER_PROPERTIES"
if ! mc-image-helper set-properties "${setPropertiesArgs[@]}" "$SERVER_PROPERTIES"; then
log "ERROR: failed to update server.properties"
exit 1
fi
}