mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +00:00
Change the go version checking in go format to the same as in contrib.
This commit is contained in:
parent
4af44ec37b
commit
c36e965c45
@ -24,9 +24,9 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
|||||||
|
|
||||||
GO_VERSION=($(go version))
|
GO_VERSION=($(go version))
|
||||||
|
|
||||||
if [[ -n $(echo "${GO_VERSION[2]}" | grep -E 'go1.1|go1.2|go1.3') ]]; then
|
if [[ -z $(echo "${GO_VERSION[2]}" | grep -E 'go1.4|go1.6') ]]; then
|
||||||
echo "Unsupported go version '${GO_VERSION}', skipping gofmt."
|
echo "Unsupported go version '${GO_VERSION[2]}', skipping gofmt."
|
||||||
exit 0
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "${KUBE_ROOT}"
|
cd "${KUBE_ROOT}"
|
||||||
|
Loading…
Reference in New Issue
Block a user