forked from lordofwizard/mcserver
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathupdate
More file actions
executable file
·27 lines (22 loc) · 816 Bytes
/
update
File metadata and controls
executable file
·27 lines (22 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
echo ''
echo '######################################################'
echo '##### THIS JUST UPDATES THE MCSERVER PROJECT #####'
echo '##### NOT YOUR MINECRAFT SERVER #####'
echo '######################################################'
echo ''
mkdir -p $PWD/../update_files
git clone https://github.com/lordofwizard/mcserver $PWD/../update_files/
rm ../update_files/startserver ../update_files/startJavaServer ../update_files/startBedrockServer
# some java/bedrock installs overwrite the startup scripts
if [ -d 'server' ]; then
mv ./server/ ../update_files
mv ./startserver ../update_files
mv ./startJavaServer ../update_files
mv ./startBedrockServer ../update_files
mv ./bin/ ../update_files/
fi
rm -rf *
mv ../update_files/* .
rm -rf ../update_files
echo -e '\n done \n'