Replace 'return' to 'exit' to fix shellcheck error

This commit is contained in:
Pengzhi Sun
2019-04-11 17:42:44 +08:00
parent c60f3823c0
commit ff9bce4a71

View File

@@ -143,11 +143,11 @@ test-shellcheck:
@ ret=0; \ @ ret=0; \
if ! command -v docker; then \ if ! command -v docker; then \
echo "skipped, no Docker"; \ echo "skipped, no Docker"; \
return 0; \ exit 0; \
fi; \ fi; \
for dir in $(abspath $(TEST_SHELLCHECK_DIRS)); do \ for dir in $(abspath $(TEST_SHELLCHECK_DIRS)); do \
echo; \ echo; \
echo "$$dir:"; \ echo "$$dir:"; \
./release-tools/verify-shellcheck.sh "$$dir" || ret=1; \ ./release-tools/verify-shellcheck.sh "$$dir" || ret=1; \
done; \ done; \
return $$ret exit $$ret