#!/bin/bash # Copyright (c) HashiCorp, Inc. # SPDX-License-Identifier: BUSL-1.1 set -e fail() { echo "$1" 1>&2 exit 1 } [[ -z "$CONFIG_PATH" ]] && fail "CONFIG_PATH env variable has not been set" [[ -z "$TOKEN_DIR" ]] && fail "TOKEN_DIR env variable has not been set" [[ -z "$SKIP" ]] && fail "SKIP env variable has not been set" if [ "$SKIP" == "true" ]; then exit 0 fi cat <