From 500c347a5c5bb048e353ac1266d5e3fa4fa91a56 Mon Sep 17 00:00:00 2001 From: The_Spider Date: Fri, 28 Jan 2022 09:48:19 -0600 Subject: [PATCH] adds escapes --- build-factario-container.jenkins | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) 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 \\ \${@} """