mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	fix: replace tmp with TMPDIR. (#2152)
This commit is contained in:
		
							
								
								
									
										6
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								Makefile
									
									
									
									
									
								
							@@ -282,9 +282,9 @@ public/css/index.css: $(STYLESHEETS)
 | 
				
			|||||||
.PHONY: swagger-ui
 | 
					.PHONY: swagger-ui
 | 
				
			||||||
swagger-ui:
 | 
					swagger-ui:
 | 
				
			||||||
	rm -Rf public/assets/swagger-ui
 | 
						rm -Rf public/assets/swagger-ui
 | 
				
			||||||
	git clone --depth=10 -b v3.0.7 --single-branch https://github.com/swagger-api/swagger-ui.git /tmp/swagger-ui
 | 
						git clone --depth=10 -b v3.0.7 --single-branch https://github.com/swagger-api/swagger-ui.git $(TMPDIR)/swagger-ui
 | 
				
			||||||
	mv /tmp/swagger-ui/dist public/assets/swagger-ui
 | 
						mv $(TMPDIR)/swagger-ui/dist public/assets/swagger-ui
 | 
				
			||||||
	rm -Rf /tmp/swagger-ui
 | 
						rm -Rf $(TMPDIR)/swagger-ui
 | 
				
			||||||
	$(SED_INPLACE) "s;http://petstore.swagger.io/v2/swagger.json;../../swagger.v1.json;g" public/assets/swagger-ui/index.html
 | 
						$(SED_INPLACE) "s;http://petstore.swagger.io/v2/swagger.json;../../swagger.v1.json;g" public/assets/swagger-ui/index.html
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.PHONY: update-translations
 | 
					.PHONY: update-translations
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user