mirror of
https://github.com/Kron4ek/Conty
synced 2024-11-16 19:50:06 +01:00
Get utils via git lfs
This commit is contained in:
parent
fe452f46ec
commit
59140999cb
1 changed files with 16 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue