From 62a86ecd27d2be148af8c011cff508f5d8f270da Mon Sep 17 00:00:00 2001 From: Tim Byrne Date: Wed, 25 Nov 2020 22:05:24 -0600 Subject: [PATCH] Support "make testhost version=local" --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ca3c203..fe3310e 100644 --- a/Makefile +++ b/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 \