Sync network redesign repo state and cutover artifacts
This commit is contained in:
@@ -12,8 +12,21 @@ if [[ ! -f "$ENV_FILE" ]]; then
|
||||
fi
|
||||
|
||||
set -a
|
||||
# shellcheck disable=SC1090
|
||||
source "$ENV_FILE"
|
||||
eval "$(python3 - "$ENV_FILE" <<'PY'
|
||||
from pathlib import Path
|
||||
import shlex
|
||||
import sys
|
||||
|
||||
env_file = Path(sys.argv[1])
|
||||
for raw_line in env_file.read_text(encoding='utf-8').splitlines():
|
||||
line = raw_line.strip()
|
||||
if not line or line.startswith('#') or '=' not in line:
|
||||
continue
|
||||
key, value = line.split('=', 1)
|
||||
value = value.strip().strip('"').strip("'")
|
||||
print(f"{key.strip()}={shlex.quote(value)}")
|
||||
PY
|
||||
)"
|
||||
set +a
|
||||
|
||||
required_vars=(
|
||||
|
||||
Reference in New Issue
Block a user