rsemcs/scripts/update_modpack.sh

10 lines
313 B
Bash
Executable File

#!/bin/bash
mkdir temp
cd temp
curl -LOJR https://dev.sys.reslate.xyz/dev-auto/job/ydeng/job/rsemcs-modpack/job/master/lastSuccessfulBuild/artifact/publish/RSEMCS_server.zip
unzip RSEMCS_server.zip
cd ../
rsync -av --update ./temp/mods/* ./mods/.
rsync -av --ignore-existing ./temp/config ./config/.
rm -r ./temp