Commit c36e965c authored by gmarek's avatar gmarek

Change the go version checking in go format to the same as in contrib.

parent 4af44ec3
......@@ -24,9 +24,9 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
GO_VERSION=($(go version))
if [[ -n $(echo "${GO_VERSION[2]}" | grep -E 'go1.1|go1.2|go1.3') ]]; then
echo "Unsupported go version '${GO_VERSION}', skipping gofmt."
exit 0
if [[ -z $(echo "${GO_VERSION[2]}" | grep -E 'go1.4|go1.6') ]]; then
echo "Unsupported go version '${GO_VERSION[2]}', skipping gofmt."
exit 1
fi
cd "${KUBE_ROOT}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment