2020-07-17 04:02:27 +02:00
|
|
|
#!/usr/bin/env bash
|
2020-08-15 11:43:24 +02:00
|
|
|
|
|
|
|
PS1=$
|
|
|
|
basedir=`pwd`
|
|
|
|
|
|
|
|
function update {
|
|
|
|
branch=$2
|
|
|
|
if [ -z "$2" ]; then
|
|
|
|
branch="master"
|
|
|
|
fi
|
|
|
|
cd "$basedir/$1"
|
|
|
|
git fetch && git reset --hard origin/$branch
|
|
|
|
git add $1
|
|
|
|
}
|
|
|
|
|
|
|
|
function updateAll {
|
|
|
|
update Akarin 1.16.2
|
|
|
|
update Empirecraft ver/1.16.2
|
|
|
|
update Origami 1.16
|
2020-08-15 20:20:57 +02:00
|
|
|
update Purpur ver/1.16.2
|
2020-08-15 11:43:24 +02:00
|
|
|
update Rainforest ver/1.16
|
2020-09-04 08:19:36 +02:00
|
|
|
update Tuinity ver/1.16.2
|
2020-08-15 18:18:36 +02:00
|
|
|
git submodule update --recursive
|
2020-08-15 11:43:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if [ -z "$1" ]; then
|
|
|
|
updateAll
|
|
|
|
elif [ "$1" == "true" ]; then
|
2020-09-04 08:19:36 +02:00
|
|
|
update Tuinity ver/1.16.2
|
2020-08-15 18:18:36 +02:00
|
|
|
git submodule update --recursive
|
|
|
|
elif [ "$1" == "false" ]; then
|
|
|
|
if [ "$2" == "true" ]; then
|
|
|
|
git submodule update --init -f
|
|
|
|
cd "$basedir"
|
|
|
|
cd Tuinity
|
|
|
|
git clean -fx
|
|
|
|
git clean -fd
|
|
|
|
git fetch
|
2020-09-04 08:19:36 +02:00
|
|
|
git reset --hard origin/ver/1.16.2
|
2020-08-15 18:18:36 +02:00
|
|
|
git submodule update --init --recursive -f
|
|
|
|
else
|
|
|
|
updateAll
|
|
|
|
fi
|
2020-08-15 11:43:24 +02:00
|
|
|
else
|
|
|
|
updateAll
|
2020-08-15 18:18:36 +02:00
|
|
|
fi
|