Changed upgrade unzipping to avoid overwriting without prompting

#144 #145 #146
This commit is contained in:
Geoff Bourne committed 2021-04-23 08:56:21 -05:00
1 parent 7b8fd753f3
commit a8aa3846da
1 file changed
+3 -2
+3 -2
View File
@@ -95,8 +95,9 @@ if [ ! -f "bedrock_server-${VERSION}" ]; then
fi fi
done done
# ... overwrite all game files, except config files # Do not overwrite existing files, which means the cleanup above needs to account for things
unzip -q ${TMP_ZIP} -x $(ls server.properties whitelist.json permissions.json 2> /dev/null) # that MUST be replaced on upgrade
unzip -q -n ${TMP_ZIP}
rm ${TMP_ZIP} rm ${TMP_ZIP}
chmod +x bedrock_server chmod +x bedrock_server