Support "make testhost version=local"

pull/271/head
Tim Byrne 4 years ago
parent 7997dc9a3d
commit 62a86ecd27
No known key found for this signature in database
GPG Key ID: 14DB4FC2465A4B12

@ -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…
Cancel
Save