#!/usr/bin/env bash set -eu help() { cat <<'EOF' Export a set of environment variables so you can debug Nomad while running it under this Enos scenario. Usage: $(debug-environment .enos/[directory with Enos state]) EOF } DIR=${1:-unknown} if [[ $DIR == "unknown" ]]; then help exit 1 fi pushd $DIR > /dev/null cat <