From d92c21b9f900ac50b58a4a4c72ca2d2376287c23 Mon Sep 17 00:00:00 2001
From: "charles.deng" <cilendeng@gmail.com>
Date: Wed, 7 Mar 2018 23:34:08 +0800
Subject: [PATCH] Update check go major version way

the previous one just keep one prefix number as the major number, it should be the whole number after the dot.
---
 scripts/check-go-version | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/check-go-version b/scripts/check-go-version
index 3975b64f..6891ca59 100755
--- a/scripts/check-go-version
+++ b/scripts/check-go-version
@@ -5,7 +5,7 @@ set -e
 VERSION=$( go version )
 
 # For development versions of Go, these will be empty.
-MAJOR_GOVERSION=$( echo -n "$VERSION" | grep -o 'go1\.[0-9]' || true )
+MAJOR_GOVERSION=$( echo -n "$VERSION" | grep -o 'go1\.[0-9]*' || true )
 FULL_GOVERSION=$( echo -n "$VERSION" | grep -o 'go1\.[0-9|\.]*' || true )
 
 # The list of unsupported major go versions.
-- 
GitLab