File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ if [ ! -f "bedrock_server-${VERSION}" ]; then
85
85
# remove only binaries and some docs, to allow for an upgrade of those
86
86
rm -rf bedrock_server * .so release-notes.txt bedrock_server_how_to.html valid_known_packs.json premium_cache 2> /dev/null
87
87
88
- bkupDir=backup-pre-${VERSION}
88
+ bkupDir=/tmp/ backup-pre-${VERSION}
89
89
# fixup any previous interrupted upgrades
90
90
rm -rf " ${bkupDir} "
91
91
for d in behavior_packs definitions minecraftpe resource_packs structures treatments world_templates
@@ -96,6 +96,11 @@ if [ ! -f "bedrock_server-${VERSION}" ]; then
96
96
mv $d $bkupDir
97
97
fi
98
98
done
99
+ # remove any old previous backups
100
+ shopt -s nullglob
101
+ for d in backup-pre-* ; do
102
+ rm -rf $d
103
+ done
99
104
100
105
# Do not overwrite existing files, which means the cleanup above needs to account for things
101
106
# that MUST be replaced on upgrade
You can’t perform that action at this time.
0 commit comments