add Go to PATH

This commit is contained in:
openoms 2019-09-11 09:57:55 +01:00
parent 85b34c0d55
commit d56417fd03

View file

@ -69,6 +69,7 @@ if [ ${goInstalled} -eq 0 ];then
export PATH=$PATH:$GOROOT/bin
export GOPATH=/usr/local/gocode
export PATH=$PATH:$GOPATH/bin
sudo bash -c "echo 'PATH=\$PATH:/usr/local/gocode/bin/' >> /etc/profile"
goInstalled=$(go version 2>/dev/null | grep -c 'go')
fi
if [ ${goInstalled} -eq 0 ];then