adds escapes

This commit is contained in:
Hyatt 2022-01-28 09:49:46 -06:00
parent 86dfc0163c
commit 123332e547
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -18,11 +18,11 @@ 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
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 \\