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