mirror of
https://gitlab.com/Merith-TK/vanillia-modpack.git
synced 2024-11-26 23:36:21 +00:00
20 lines
544 B
Bash
20 lines
544 B
Bash
GITURL="https://github.com/git-for-windows/git/releases/download/v2.33.0.windows.1/PortableGit-2.33.0-64-bit.7z.exe"
|
|
|
|
#install git if not found
|
|
if [ ! -f "git/bin/git.exe" ]; then
|
|
if [ ! -d "temp" ]; then
|
|
mkdir temp
|
|
fi
|
|
if [ ! -f "temp/git.install.exe" ]; then
|
|
wget $GITURL -O temp/git.install.exe
|
|
fi
|
|
temp/git.install.exe -o git -y
|
|
fi
|
|
rm -rf temp
|
|
|
|
cd ../
|
|
|
|
update-pack.data/git/bin/git.exe config pull.rebase false
|
|
update-pack.data/git/bin/git.exe pull origin 1.18
|
|
|
|
echo "[$0] If there were any errors, please inform the Modpack Author"
|