소스 검색

修复国内获取go版本号

Jrohy 2 년 전
부모
커밋
d6152cabc2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      install.sh

+ 1 - 1
install.sh

@@ -132,7 +132,7 @@ install_go(){
     if [[ -z $install_version ]];then
         echo "正在获取最新版golang..."
         if [[ $can_google == 0 ]];then
-            install_version=`curl -s https://golang.google.cn/dl/|grep -w downloadBox|grep src|grep -oE '[0-9]+\.[0-9]+\.?[0-9]*'|head -n 1`
+            install_version=`curl -s https://go.dev/dl/|grep -w downloadBox|grep src|grep -oE '[0-9]+\.[0-9]+\.?[0-9]*'|head -n 1`
         else
             install_version=`curl -s https://github.com/golang/go/tags|grep releases/tag|grep -v rc|grep -v beta|grep -oE '[0-9]+\.[0-9]+\.?[0-9]*'|head -n 1`
         fi