more simple go checking

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
This commit is contained in:
Василий Толстов 2016-09-27 09:09:55 +03:00
parent 002446413d
commit 3d8a829986

2
build
View File

@ -14,7 +14,7 @@ mkdir -p $GOBIN
mkdir -p $GOPATH mkdir -p $GOPATH
mkdir -p bin tmp mkdir -p bin tmp
go version | grep -q go which go 2>/dev/null
if [ "x$?" != "x0" ]; then if [ "x$?" != "x0" ]; then
export GOROOT=$(pwd)/goroot export GOROOT=$(pwd)/goroot