Test for gopath

This commit is contained in:
Bob Mottram 2016-04-29 14:22:28 +01:00
parent 81ed974d4b
commit ace9bf07c3
No known key found for this signature in database
GPG Key ID: BA68F26108DC9F87
1 changed files with 12 additions and 7 deletions

View File

@ -2645,6 +2645,11 @@ function select_go_version {
cd $HOME/.gvm/scripts
gvm use go${GO_VERSION} --default
systemctl set-environment GOPATH=$GOPATH
if [ ${#GOPATH} -lt 2 ]; then
echo $'GOPATH was not set'
exit 629825
fi
}
function mesh_cjdns_tools {