check against null, not empty string
This commit is contained in:
parent
e99fba0192
commit
8eb44716e9
1 changed files with 2 additions and 2 deletions
|
@ -472,8 +472,8 @@ in
|
|||
echo "eula=true" > eula.txt
|
||||
# Update the server properties
|
||||
cat ${serverProperties} > server.properties
|
||||
${if cfg.properties.rcon-password-file != "" then ''
|
||||
echo "rcon.password=$(cat ${cfg.properties.rcon-password-file})" >> server.properties
|
||||
${if cfg.properties.rcon-password-file != null then ''
|
||||
echo "rcon.password=$(cat ${builtins.toString cfg.properties.rcon-password-file})" >> server.properties
|
||||
'' else "" }
|
||||
# Update the whitelist
|
||||
cat ${whitelistJson} > whitelist.json
|
||||
|
|
Loading…
Reference in a new issue