Make shell redirections in Makefile work with dash

The default shell in Debian is dash and it doesn't support &>.
This commit is contained in:
Erik Flodin 2020-10-09 22:55:10 +02:00
parent e0daf86334
commit 95c17d0bc5
No known key found for this signature in database
GPG Key ID: 420A7C865EE3F85F
1 changed files with 2 additions and 2 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."; \
@ -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