diff --git a/build-factario-container.jenkins b/build-factario-container.jenkins index 332af0b..1c7a0d7 100644 --- a/build-factario-container.jenkins +++ b/build-factario-container.jenkins @@ -18,28 +18,28 @@ id [ ! -f "/data/config/map-gen-settings.json" ] && cp /opt/factorio/data/map-gen-settings.example.json /data/config/map-gen-settings.json [ ! -f "/data/config/map-settings.json" ] && cp /opt/factorio/data/map-settings.example.json /data/config/map-settings.json -if find -L /data/saves -iname \\*.tmp.zip -mindepth 1 -print | grep -q .; then +if find -L /data/saves -iname \\\*.tmp.zip -mindepth 1 -print | grep -q .; then rm -f /data/saves/*.tmp.zip fi if ! find -L /data/saves -iname \*.zip -mindepth 1 -print | grep -q .; then - /opt/factorio/bin/x64/factorio \ - --create /data/saves/_autosave1.zip \ - --map-gen-settings /data/config/map-gen-settings.json \ + /opt/factorio/bin/x64/factorio \\ + --create /data/saves/_autosave1.zip \\ + --map-gen-settings /data/config/map-gen-settings.json \\ --map-settings /data/config/map-settings.json fi -/opt/factorio/bin/x64/factorio \ - --port \${PORT} \ - --start-server-load-latest \ - --server-settings /data/config/server-settings.json \ - --server-banlist /data/config/server-banlist.json \ - --rcon-port \${RCON_PORT} \ - --server-whitelist /data/config/server-whitelist.json \ - --use-server-whitelist \ - --server-adminlist /data/config/server-adminlist.json \ - --rcon-password "\$(cat /data/config/rconpw)" \ - --server-id /factorio/config/server-id.json \ +/opt/factorio/bin/x64/factorio \\ + --port \${PORT} \\ + --start-server-load-latest \\ + --server-settings /data/config/server-settings.json \\ + --server-banlist /data/config/server-banlist.json \\ + --rcon-port \${RCON_PORT} \\ + --server-whitelist /data/config/server-whitelist.json \\ + --use-server-whitelist \\ + --server-adminlist /data/config/server-adminlist.json \\ + --rcon-password "\$(cat /data/config/rconpw)" \\ + --server-id /factorio/config/server-id.json \\ \${@} """