fix for .tmp.zip saves not being deleted on start (#255)

Co-Authored-By: Chris Cowan <agentme49@gmail.com>
This commit is contained in:
Osiris 2019-05-16 19:55:02 +02:00 committed by Sandro Jäckel
parent 778d982c6d
commit 5cd0c40975

View File

@ -32,7 +32,7 @@ fi
NRTMPSAVES=$( find -L "$SAVES" -iname \*.tmp.zip -mindepth 1 | wc -l )
if [ "$NRTMPSAVES" -gt 0 ]; then
# Delete incomplete saves (such as after a forced exit)
rm -f "$SAVES/*.tmp.zip"
rm -f "$SAVES"/*.tmp.zip
fi
if [ "$(id -u)" = '0' ]; then