1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00
Files
installer/hack/shellcheck.sh
2018-08-02 15:29:12 -05:00

8 lines
314 B
Bash
Executable File

#!/bin/sh
DIR="${1:-.}"
if [ "$IS_CONTAINER" != "" ]; then
find "${DIR}" -type f -name '*.sh' -exec shellcheck --format=gcc {} \+
else
docker run -e IS_CONTAINER='TRUE' --rm -v "$(realpath "${DIR}")":/workdir:ro --entrypoint sh quay.io/coreos/shellcheck-alpine:v0.5.0 /workdir/hack/shellcheck.sh /workdir;
fi;