Sfoglia il codice sorgente

Add GOPATH to bashrc

Bob Mottram 10 anni fa
parent
commit
888bac0388
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2
    0
      src/freedombone

+ 2
- 0
src/freedombone Vedi File

@@ -6777,6 +6777,8 @@ function install_gogs {
6777 6777
 
6778 6778
   # install Go
6779 6779
   apt-get -y install golang
6780
+  echo 'export GOPATH=/home/git/go' >> ~/.bashrc
6781
+  . ~/.bashrc
6780 6782
   export GOPATH=/home/git/go
6781 6783
   if [ ! -d $GOPATH ]; then
6782 6784
       mkdir -p $GOPATH