Kaynağa Gözat

Add GOPATH to bashrc

Bob Mottram 10 yıl önce
ebeveyn
işleme
888bac0388
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2
    0
      src/freedombone

+ 2
- 0
src/freedombone Dosyayı Görüntüle

@@ -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