Jrohy 2 年之前
父節點
當前提交
078c46474e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      install.sh

+ 2 - 2
install.sh

@@ -137,9 +137,9 @@ install_go(){
         do
             install_version=""
             if [[ $can_google == 0 ]];then
-                install_version=`curl $curl_param https://go.dev/dl/|grep -w downloadBox|grep src|grep -oE '[0-9]+\.[0-9]+\.?[0-9]*'|head -n 1`
+                install_version=`curl "$curl_param" https://go.dev/dl/|grep -w downloadBox|grep src|grep -oE '[0-9]+\.[0-9]+\.?[0-9]*'|head -n 1`
             else
-                install_version=`curl $curl_param 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`
+                install_version=`curl "$curl_param" 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
             [[ ${install_version: -1} == '.' ]] && install_version=${install_version%?}
             if [[ -z $install_version ]];then