Explorar o código

修复国内获取go版本号

Jrohy %!s(int64=2) %!d(string=hai) anos
pai
achega
d6152cabc2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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