Clean up after recoveries
This commit is contained in:
parent
d698f0b588
commit
8bdfd3936d
@ -40,3 +40,9 @@ if [ -f "world/level.dat" ]; then
|
||||
else
|
||||
echo "Failed to recover from backup: $backup"
|
||||
fi
|
||||
# Remove the var dir, if it exists, because that's what it ends up being named
|
||||
if [ -d "var" ]; then
|
||||
# Never use relative paths with rm in a script
|
||||
# That's heresy
|
||||
rm -rf "/var/minecraft/{{{ mcname }}/var"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user