7 lines
346 B
Bash
7 lines
346 B
Bash
#!/usr/bin/env bash
|
|
# Shared context for standalone diagnostic scripts as well as Jeannie children.
|
|
cluster_env_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
cluster_env_values="$(python3 "${cluster_env_root}/scripts/cluster_runtime_context.py" shell)" || return 1
|
|
eval "${cluster_env_values}"
|
|
unset cluster_env_root cluster_env_values
|