Skip to content

Commit 9b0d9cd

Browse files
committed
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.
1 parent aa45a1c commit 9b0d9cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.make

+4
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ test: test-shellcheck
141141
test-shellcheck:
142142
@ echo; echo "### $@:"
143143
@ ret=0; \
144+
if ! command -v docker; then \
145+
echo "skipped, no Docker"; \
146+
return 0; \
147+
fi; \
144148
for dir in $(abspath $(TEST_SHELLCHECK_DIRS)); do \
145149
echo; \
146150
echo "$$dir:"; \

0 commit comments

Comments
 (0)