mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Use [:space:] instead of \s (#10508)
This commit is contained in:
		
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							@@ -137,7 +137,7 @@ help:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
.PHONY: go-check
 | 
					.PHONY: go-check
 | 
				
			||||||
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 \
 | 
						@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/"; \
 | 
							echo "Gitea requires Go 1.11.0 or greater to build. You can get it at https://golang.org/dl/"; \
 | 
				
			||||||
		exit 1; \
 | 
							exit 1; \
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user