fixed check for saves

This commit is contained in:
David Andersen 2016-10-26 17:26:47 +00:00
parent 16602ba40b
commit 08090e70a0

View File

@ -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