diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 6294cbc..c6852a0 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -2,8 +2,8 @@ SAVES=/opt/factorio/saves -if [ ! -f $SAVES/*.zip ] -then +if ! find $SAVES -iname \*.zip -mindepth 1 -print | grep -q .; then +#if [ -z $(find $SAVES -iname \*.zip -mindepth 1 -print | grep -q .) ]; then /opt/factorio/bin/x64/factorio \ --create $SAVES/save.zip \ --map-gen-settings /opt/factorio/data/map-gen-settings.json