Separated update from run script.

This commit is contained in:
Harrison Deng 2022-01-10 04:23:40 -06:00
parent e49964b894
commit 34d0df7cbd
2 changed files with 6 additions and 3 deletions

4
run.sh
View File

@ -1,7 +1,5 @@
#!/bin/sh #!/bin/sh
git checkout master ./update.sh
git reset --hard
git pull origin master --ff-only
java -XX:+UseG1GC -Xmx5G -jar paper.jar nogui java -XX:+UseG1GC -Xmx5G -jar paper.jar nogui

5
update.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
git reset --hard
git pull origin master --ff-only
git checkout master@{'24 hours ago'}