Skip to content

Commit b23f0a6

Browse files
author
Shlomi Noach
committed
build.sh: supporting go1.9 and above
1 parent 90a28be commit b23f0a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function build {
1010
GOOS=$3
1111
GOARCH=$4
1212

13-
if [[ $(go version | egrep "go1[.][012345678]") ]]; then
13+
if ! go version | egrep -q 'go(1[.]9|1[.]1[0-9])' ; then
1414
echo "go version is too low. Must use 1.9 or above"
1515
exit 1
1616
fi

0 commit comments

Comments
 (0)