mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修复系统更新源判断,回退 @monaco-editor/react
This commit is contained in:
+3
-3
@@ -226,10 +226,10 @@ usage() {
|
||||
|
||||
## 更新qinglong
|
||||
update_qinglong() {
|
||||
local mirror="github"
|
||||
local githubStatus=$(curl -s -m 2 -IL "https://github.com" | grep 200)
|
||||
local mirror="gitee"
|
||||
local githubStatus=$(curl -s -m 2 -IL "https://google.com" | grep 200)
|
||||
if [[ ! -z $githubStatus ]]; then
|
||||
mirror="gitee"
|
||||
mirror="github"
|
||||
fi
|
||||
echo -e "使用 ${mirror} 源更新...\n"
|
||||
export isFirstStartServer=false
|
||||
|
||||
Reference in New Issue
Block a user