Add GOPATH to bashrc

This commit is contained in:
Bob Mottram 2015-03-22 17:55:28 +00:00
parent 8f76da21b8
commit 888bac0388
1 changed files with 2 additions and 0 deletions

View File

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