mirror of
https://github.com/oneclickvirt/basics.git
synced 2025-10-07 17:41:54 +08:00
update
This commit is contained in:
@@ -6,8 +6,6 @@ rm -rf basics
|
|||||||
os=$(uname -s)
|
os=$(uname -s)
|
||||||
arch=$(uname -m)
|
arch=$(uname -m)
|
||||||
|
|
||||||
cdn_urls=("https://cdn0.spiritlhl.top/" "http://cdn3.spiritlhl.net/" "http://cdn1.spiritlhl.net/" "https://ghproxy.com/" "http://cdn2.spiritlhl.net/")
|
|
||||||
|
|
||||||
check_cdn() {
|
check_cdn() {
|
||||||
local o_url=$1
|
local o_url=$1
|
||||||
for cdn_url in "${cdn_urls[@]}"; do
|
for cdn_url in "${cdn_urls[@]}"; do
|
||||||
@@ -29,6 +27,7 @@ check_cdn_file() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cdn_urls=("https://cdn0.spiritlhl.top/" "http://cdn3.spiritlhl.net/" "http://cdn1.spiritlhl.net/" "http://cdn2.spiritlhl.net/")
|
||||||
check_cdn_file
|
check_cdn_file
|
||||||
|
|
||||||
case $os in
|
case $os in
|
||||||
|
Reference in New Issue
Block a user