Skip to content

Commit 4c40aa5

Browse files
authored
Use [:space:] instead of \s (#10508) (#10509)
Backport #10508
1 parent 50f2e90 commit 4c40aa5

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
@@ -123,7 +123,7 @@ help:
123123

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

0 commit comments

Comments
 (0)