瀏覽代碼

优化安装

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

+ 3 - 3
install.sh

@@ -61,7 +61,7 @@ setupEnv(){
     if [[ $SUDO == "" ]];then
         PROFILE_PATH="/etc/profile"
     elif [[ -e ~/.zshrc ]];then
-        PROFILE_PATH="~/.zprofile"
+        PROFILE_PATH="$HOME/.zprofile"
     fi
     if [[ $SUDO == "" && -z `echo $GOPATH` ]];then
         while :
@@ -161,8 +161,8 @@ installGo(){
     rm -rf $TEMP_PATH $FILE_NAME
 
     if [[ ! -e /usr/local/bin/goupdate ]];then
-        $SUDO echo "source <(curl -L https://go-install.netlify.app/install.sh)" > /usr/local/bin/goupdate
-        $SUDO chmod +x /usr/local/bin/goupdate
+        $SUDO echo "source <(curl -L https://go-install.netlify.app/install.sh)" > /usr/bin/goupdate
+        $SUDO chmod +x /usr/bin/goupdate
     fi
 }