Update export pack script
- Remove redundant ssh clone mode - Only clone the used branch
This commit is contained in:
parent
c82a21b20b
commit
a5f3c5f18e
|
|
@ -14,17 +14,8 @@ if [ ! -d overrides/mods ]; then
|
||||||
mkdir -p overrides/mods
|
mkdir -p overrides/mods
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
# If the user provides input e.g. `./export-pack.sh 1`, clone the repository using https
|
# Clone the mod repo, if it already exists then update it
|
||||||
if [ -n "$1" ]; then
|
git clone --single-branch -b 1.21.1 "https://patience.nearmisses.xyz/patience/mc_rebalance.git" "$basedir/deps/mc_rebalance" --branch 1.21 || (cd "$basedir/deps/mc_rebalance"; git checkout 1.21; git pull) || exit 1
|
||||||
repo_prefix="https://patience.nearmisses.xyz/"
|
|
||||||
else
|
|
||||||
repo_prefix="forgejo@patience.nearmisses.xyz:"
|
|
||||||
fi
|
|
||||||
|
|
||||||
mod_repo="$repo_prefix/patience/mc_rebalance.git"
|
|
||||||
|
|
||||||
# Clone the repos if they don't exist, otherwise, update them
|
|
||||||
git clone "$mod_repo" "$basedir/deps/mc_rebalance" --branch 1.21 || (cd "$basedir/deps/mc_rebalance"; git checkout 1.21; git pull) || exit 1
|
|
||||||
|
|
||||||
rm "$basedir/deps/mc_rebalance/build/libs/mc_rebalance-"*".jar"
|
rm "$basedir/deps/mc_rebalance/build/libs/mc_rebalance-"*".jar"
|
||||||
(cd "$basedir"/deps/mc_rebalance/ && ./gradlew build)
|
(cd "$basedir"/deps/mc_rebalance/ && ./gradlew build)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue