build.make: skip shellcheck if Docker is not available

Not all environments have Docker. The simplifying assumption here is
that if the Docker command is available, it's also usable.
This commit is contained in:
Patrick Ohly
2019-04-08 11:37:01 +02:00
parent aa45a1cd9b
commit 9b0d9cd743

View File

@@ -141,6 +141,10 @@ test: test-shellcheck
test-shellcheck:
@ echo; echo "### $@:"
@ ret=0; \
if ! command -v docker; then \
echo "skipped, no Docker"; \
return 0; \
fi; \
for dir in $(abspath $(TEST_SHELLCHECK_DIRS)); do \
echo; \
echo "$$dir:"; \