diff --git a/Makefile b/Makefile index da6acd8dc29d5..0f285b7a9c0b2 100644 --- a/Makefile +++ b/Makefile @@ -137,7 +137,7 @@ help: .PHONY: go-check go-check: - $(eval GO_VERSION := $(shell printf "%03d%03d%03d" $(shell go version | grep -Eo '[0-9]+\.?[0-9]+?\.?[0-9]?\s' | tr '.' ' ');)) + $(eval GO_VERSION := $(shell printf "%03d%03d%03d" $(shell go version | grep -Eo '[0-9]+\.?[0-9]+?\.?[0-9]?[[:space:]]' | tr '.' ' ');)) @if [ "$(GO_VERSION)" -lt "001011000" ]; then \ echo "Gitea requires Go 1.11.0 or greater to build. You can get it at https://golang.org/dl/"; \ exit 1; \