Get utils via git lfs

This commit is contained in:
Kron4ek 2024-08-01 11:15:57 +03:00 committed by GitHub
parent fe452f46ec
commit 59140999cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,8 +61,22 @@ else
fi
if [ ! -f "${utils}" ] || [ "$(wc -c < "${utils}")" -lt 100000 ]; then
rm -f "${utils}"
curl -#LO "https://github.com/Kron4ek/Conty/raw/master/${utils}"
if [ -d .git ]; then
git lfs install
git lfs fetch origin master
git lfs checkout
fi
if [ ! -f "${utils}" ] || [ "$(wc -c < "${utils}")" -lt 100000 ]; then
if git config --get remote.origin.url; then
utils_url="$(git config --get remote.origin.url)"/raw/master/${utils}
else
utils_url="https://github.com/Kron4ek/Conty/raw/master/${utils}"
fi
rm -f "${utils}"
curl -#LO "${utils_url}"
fi
fi
if [ ! -f conty-start.sh ]; then