fail when go is < 1.12
This commit is contained in:
parent
e1c8df7447
commit
143abf05b0
4
build.sh
4
build.sh
@ -18,11 +18,9 @@ function build {
|
|||||||
GOOS=$3
|
GOOS=$3
|
||||||
GOARCH=$4
|
GOARCH=$4
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ! go version | egrep -q 'go(1\.1[234])' ; then
|
if ! go version | egrep -q 'go(1\.1[234])' ; then
|
||||||
echo "go version must be 1.12 or above"
|
echo "go version must be 1.12 or above"
|
||||||
ok=1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Building ${osname} binary"
|
echo "Building ${osname} binary"
|
||||||
|
Loading…
Reference in New Issue
Block a user