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:
parent
e0daf86334
commit
95c17d0bc5
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue