Merge pull request #254 from erijo/misc

This commit is contained in:
Tim Byrne 2020-10-10 17:53:30 -05:00
commit 90901e588e
No known key found for this signature in database
GPG Key ID: 14DB4FC2465A4B12
2 changed files with 5 additions and 5 deletions

View File

@ -93,7 +93,7 @@ test:
cd /yadm && \
py.test -v $(testargs); \
else \
if command -v "docker-compose" &> /dev/null; then \
if command -v "docker-compose" > /dev/null 2>&1; then \
docker-compose run --rm testbed make test testargs="$(testargs)"; \
else \
echo "Sorry, this make test requires docker-compose to be installed."; \
@ -102,8 +102,8 @@ test:
fi
.PHONY: testhost
testhost: version ?= HEAD
testhost: require-docker
@version=HEAD
@rm -rf /tmp/testhost
@git show $(version):yadm > /tmp/testhost
@chmod a+x /tmp/testhost
@ -117,8 +117,8 @@ testhost: require-docker
bash -l
.PHONY: scripthost
scripthost: version ?= HEAD
scripthost: require-docker
@version=HEAD
@rm -rf /tmp/testhost
@git show $(version):yadm > /tmp/testhost
@chmod a+x /tmp/testhost
@ -197,7 +197,7 @@ sync-clock:
.PHONY: require-docker
require-docker:
@if ! command -v "docker" &> /dev/null; then \
@if ! command -v "docker" > /dev/null 2>&1; then \
echo "Sorry, this make target requires docker to be installed."; \
false; \
fi

2
yadm.1
View File

@ -704,7 +704,7 @@ Examples:
.I whatever##template
with the following content
{% if yadm.user == 'harvey' %}
{% if yadm.user == "harvey" %}
config={{yadm.class}}-{{yadm.os}}
{% else %}
config=dev-whatever