1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00
Files
installer/hack/shellcheck.sh
John Hixson 9c77d6a437 terraform: allow for building local providers individually
This will build local terraform providers individually. The local terraform
providers are the providers that either (1) are not published in a public
regisrty or (2) require patches.

azureprivatedns: private to the installer repo
azurestack: requires patches
ibm: arm build is not published
ignition: arm buid is not published
ironic: not published
ovirt: not published
vsphere: requires patches
vsphereprivate: private to the installer repo

Building these has been added hack/build.sh. In the future a better way of
handling the vendoring in the individual directories will be necessary.

co-authored: staebler
2022-02-21 10:30:46 -05:00

17 lines
473 B
Bash
Executable File

#!/bin/sh
if [ "$IS_CONTAINER" != "" ]; then
TOP_DIR="${1:-.}"
find "${TOP_DIR}" \
-path "${TOP_DIR}/vendor" -prune \
-o -path "${TOP_DIR}/terraform/*/vendor" -prune \
-o -type f -name '*.sh' -exec shellcheck --format=gcc {} \+
else
podman run --rm \
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/workdir:ro,z" \
--entrypoint sh \
--workdir /workdir \
quay.io/coreos/shellcheck-alpine:v0.5.0 \
/workdir/hack/shellcheck.sh "${@}"
fi;