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; \
if ! command -v docker; then \
echo "skipped, no Docker"; \
return 0; \
exit 0; \
fi; \
for dir in $(abspath $(TEST_SHELLCHECK_DIRS)); do \
echo; \
echo "$$dir:"; \
./release-tools/verify-shellcheck.sh "$$dir" || ret=1; \
done; \
return $$ret
exit $$ret