diff --git a/hack/shellcheck.sh b/hack/shellcheck.sh index 3e2f353cd9..e7e7c0ba19 100755 --- a/hack/shellcheck.sh +++ b/hack/shellcheck.sh @@ -7,7 +7,7 @@ CONTAINER_RUNTIME="${CONTAINER_RUNTIME:-podman}" if [ "${IS_CONTAINER}" != "false" ]; then TOP_DIR="${1:-.}" - find "${TOP_DIR}" \( -path ./vendor -prune \) -o -name '*.sh' -exec shellcheck -s bash {} \+ + find "${TOP_DIR}" -path ./vendor -prune -o -name '*.sh' -type f -exec shellcheck -s bash {} \+ else "${CONTAINER_RUNTIME}" run --rm \ --env IS_CONTAINER=TRUE \