2022-05-12 09:33:18 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-05-16 05:42:40 +00:00
|
|
|
git clone git@dev.sys.reslate.xyz:ydeng/rsemcs.git update-folder
|
|
|
|
cd update-folder
|
|
|
|
git checkout develop
|
2022-05-12 09:33:18 +00:00
|
|
|
mkdir temp
|
|
|
|
cd temp
|
2022-05-13 18:56:37 +00:00
|
|
|
curl -LOJR https://dev.sys.reslate.xyz/dev-auto/job/ydeng-public/job/rsemcm/job/master/lastSuccessfulBuild/artifact/publish/RSEMCM_server.zip
|
|
|
|
unzip RSEMCM_server.zip
|
2022-05-12 09:33:18 +00:00
|
|
|
cd ../
|
2022-05-13 18:56:37 +00:00
|
|
|
rsync -av --update temp/mods/* ./mods/.
|
|
|
|
rsync -av --ignore-existing temp/config ./config/.
|
2022-05-16 05:42:40 +00:00
|
|
|
rm -r ./temp
|
|
|
|
git add .
|
|
|
|
git commit -a -m "Automatic updating of mods and their configurations."
|
|
|
|
git push
|
|
|
|
cd ../
|
|
|
|
rm -rf update-folder
|