Add GOPATH to bashrc
This commit is contained in:
parent
8f76da21b8
commit
888bac0388
|
@ -6777,6 +6777,8 @@ function install_gogs {
|
||||||
|
|
||||||
# install Go
|
# install Go
|
||||||
apt-get -y install golang
|
apt-get -y install golang
|
||||||
|
echo 'export GOPATH=/home/git/go' >> ~/.bashrc
|
||||||
|
. ~/.bashrc
|
||||||
export GOPATH=/home/git/go
|
export GOPATH=/home/git/go
|
||||||
if [ ! -d $GOPATH ]; then
|
if [ ! -d $GOPATH ]; then
|
||||||
mkdir -p $GOPATH
|
mkdir -p $GOPATH
|
||||||
|
|
Loading…
Reference in New Issue