github.com/openshift/installer@v1.4.17/hack/shellcheck.sh (about) 1 #!/bin/sh 2 if [ "$IS_CONTAINER" != "" ]; then 3 TOP_DIR="${1:-.}" 4 find "${TOP_DIR}" \ 5 -path "${TOP_DIR}/vendor" -prune \ 6 -o -path "${TOP_DIR}/cluster-api/*/vendor" -prune \ 7 -o -path "${TOP_DIR}/terraform/*/vendor" -prune \ 8 -o -type f -name '*.sh' -exec shellcheck --format=gcc {} \+ 9 else 10 podman run --rm \ 11 --env IS_CONTAINER=TRUE \ 12 --volume "${PWD}:/workdir:ro,z" \ 13 --entrypoint sh \ 14 --workdir /workdir \ 15 quay.io/coreos/shellcheck-alpine:v0.5.0 \ 16 /workdir/hack/shellcheck.sh "${@}" 17 fi;