1
0
Fork 0
mirror of synced 2024-11-04 09:08:56 -05:00

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

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