Fix tar invocation
This commit is contained in:
parent
eef44aab43
commit
6f619f2f9d
@ -16,7 +16,7 @@ cd "$MINECRAFT_DIR" || exit 50
|
||||
# If the world directory exists, we need to ensure that we don't clobber it
|
||||
if [ -d "world" ]; then
|
||||
echo "Backing up current world"
|
||||
tar --force-local czf "recover-world-$(date -Iseconds).tar.gz" world --remove-files
|
||||
tar czf "recover-world-$(date -Iseconds).tar.gz" world --remove-files --force-local
|
||||
fi
|
||||
# If it STILL exists, then we have a problem
|
||||
if [ -d "world" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user