From 4c40aa5be97f9969ed09e29fdbfa39e890eb3bba Mon Sep 17 00:00:00 2001 From: zeripath Date: Thu, 27 Feb 2020 19:12:10 +0000 Subject: [PATCH] Use [:space:] instead of \s (#10508) (#10509) Backport #10508 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d33b5fdc2..3f9ff0080 100644 --- a/Makefile +++ b/Makefile @@ -123,7 +123,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; \