This commit is contained in:
qiaofeng1227 2023-06-03 14:56:24 +08:00
parent eb74f7b274
commit 1cfe1aa83a

View file

@ -95,6 +95,7 @@ cd /tmp && rm -rf version.json && wget https://websoft9.github.io/StackHub/insta
echo "Update stackhub ..."
release_version=$(cat /tmp/version.json | jq .VERSION | tr -d '"')
fasturl=$(fastest_url "${urls[@]}")
echo "fasturl is: "$fasturl
cd /tmp && rm -rf /tmp/stackhub
if [ "$fasturl" == *gitee.com* ]; then
wget $fasturl/websoft9/StackHub/repository/archive/$release_version