Skip to content

Commit 858aebc

Browse files
authored
Use [:space:] instead of \s (#10508)
1 parent a924a90 commit 858aebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ help:
137137

138138
.PHONY: go-check
139139
go-check:
140-
$(eval GO_VERSION := $(shell printf "%03d%03d%03d" $(shell go version | grep -Eo '[0-9]+\.?[0-9]+?\.?[0-9]?\s' | tr '.' ' ');))
140+
$(eval GO_VERSION := $(shell printf "%03d%03d%03d" $(shell go version | grep -Eo '[0-9]+\.?[0-9]+?\.?[0-9]?[[:space:]]' | tr '.' ' ');))
141141
@if [ "$(GO_VERSION)" -lt "001011000" ]; then \
142142
echo "Gitea requires Go 1.11.0 or greater to build. You can get it at https://golang.org/dl/"; \
143143
exit 1; \

0 commit comments

Comments
 (0)