修复系统更新源判断,回退 @monaco-editor/react

This commit is contained in:
whyour
2023-03-03 23:45:38 +08:00
parent 5c5b4f804e
commit 5bf08b76de
4 changed files with 14 additions and 12 deletions
+3 -3
View File
@@ -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