Browse Source

fix path bug

Jrohy 5 years ago
parent
commit
4c9f6f6a2c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      go-install.sh

+ 1 - 0
go-install.sh

@@ -67,6 +67,7 @@ setupEnv(){
         done
         echo "GOPATH值为: `colorEcho $BLUE $GOPATH`"
         echo 'export GOPATH=$GOPATH' >> /etc/profile
+        echo 'export PATH=$PATH:$GOPATH/bin' >> /etc/profile
     fi
     source /etc/profile
 }