diff --git a/devops/scripts/load_and_validate_env.sh b/devops/scripts/load_and_validate_env.sh index 3b79c9ef6a..c4d771ab91 100755 --- a/devops/scripts/load_and_validate_env.sh +++ b/devops/scripts/load_and_validate_env.sh @@ -85,4 +85,13 @@ else export TRE_URL fi +# if local debugging is configured, then set vars required by ~/.porter/config.yaml +if [ -f "$DIR/../../core/private.env" ]; then + # shellcheck disable=SC1091 + source "$DIR/../../core/private.env" + # shellcheck disable=SC2153 + KEY_VAULT_URL=$KEYVAULT_URI + export KEY_VAULT_URL +fi + set +o nounset