mirror of
				https://github.com/TheLocehiliosan/yadm
				synced 2025-06-13 13:03:58 +00:00 
			
		
		
		
	Support "make testhost version=local"
This commit is contained in:
		
							parent
							
								
									7997dc9a3d
								
							
						
					
					
						commit
						62a86ecd27
					
				
							
								
								
									
										6
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								Makefile
									
									
									
									
									
								
							| @ -105,7 +105,11 @@ test: | ||||
| testhost: version ?= HEAD | ||||
| testhost: require-docker | ||||
| 	@rm -rf /tmp/testhost | ||||
| 	@git show $(version):yadm > /tmp/testhost | ||||
| 	@if [ "$(version)" = "local" ]; then \
 | ||||
| 		cp -f yadm /tmp/testhost; \
 | ||||
| 	else \
 | ||||
| 		git show $(version):yadm > /tmp/testhost; \
 | ||||
| 	fi | ||||
| 	@chmod a+x /tmp/testhost | ||||
| 	@echo Starting testhost version=\"$(version)\" | ||||
| 	@docker run \
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user