Skip to content

Commit 143abf0

Browse files
author
Shlomi Noach
committed
fail when go is < 1.12
1 parent e1c8df7 commit 143abf0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

build.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ function build {
1818
GOOS=$3
1919
GOARCH=$4
2020

21-
22-
2321
if ! go version | egrep -q 'go(1\.1[234])' ; then
2422
echo "go version must be 1.12 or above"
25-
ok=1
23+
exit 1
2624
fi
2725

2826
echo "Building ${osname} binary"

0 commit comments

Comments
 (0)