mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-03-29 02:25:30 +01:00
fix for .tmp.zip saves not being deleted on start (#255)
Co-Authored-By: Chris Cowan <agentme49@gmail.com>
This commit is contained in:
parent
778d982c6d
commit
5cd0c40975
@ -32,7 +32,7 @@ fi
|
|||||||
NRTMPSAVES=$( find -L "$SAVES" -iname \*.tmp.zip -mindepth 1 | wc -l )
|
NRTMPSAVES=$( find -L "$SAVES" -iname \*.tmp.zip -mindepth 1 | wc -l )
|
||||||
if [ "$NRTMPSAVES" -gt 0 ]; then
|
if [ "$NRTMPSAVES" -gt 0 ]; then
|
||||||
# Delete incomplete saves (such as after a forced exit)
|
# Delete incomplete saves (such as after a forced exit)
|
||||||
rm -f "$SAVES/*.tmp.zip"
|
rm -f "$SAVES"/*.tmp.zip
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(id -u)" = '0' ]; then
|
if [ "$(id -u)" = '0' ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user