Skip to content

Commit

Permalink
build.make: skip shellcheck if Docker is not available
Browse files Browse the repository at this point in the history
Not all environments have Docker. The simplifying assumption here is
that if the Docker command is available, it's also usable.
  • Loading branch information
pohly committed Apr 9, 2019
1 parent aa45a1c commit 9b0d9cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.make
Original file line number Diff line number Diff line change
Expand Up @@ -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:"; \
Expand Down

0 comments on commit 9b0d9cd

Please sign in to comment.