github.com/openshift/installer@v1.4.17/hack/tf-fmt.sh (about) 1 #!/bin/sh 2 3 # in prow, already in container, so no 'podman run' 4 if [ "$IS_CONTAINER" != "" ]; then 5 if [ "${#N}" -eq 0 ]; then 6 set -- -list -check -diff -write=false -recursive data/data/ 7 fi 8 set -x 9 terraform fmt "${@}" 10 else 11 podman run --rm \ 12 --env IS_CONTAINER=TRUE \ 13 --volume "${PWD}:${PWD}:z" \ 14 --workdir "${PWD}" \ 15 quay.io/coreos/terraform-alpine:v0.12.0-rc1 \ 16 ./hack/tf-fmt.sh 17 fi