From 4e045dbd8ea481959aad920982c33fd7f19e91ed Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 28 Aug 2024 20:34:15 +0200 Subject: [PATCH] print --- spcd/bootstrap.sh | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 63b04c4..8d9ca7d 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -330,7 +330,37 @@ SPCD_PM_ZYPPER="zypper" # │ step │ environment │ # ╰──────┴─────────────╯ -spcd_step__environment_defaults() { +spcd_step__environment_defaults_print() { + set -- \ + \ + "CMD_SUM" \ + \ + "GIT_RWX" \ + "GIT_SPCD" \ + "GIT_SHUNIT" \ + "REF_FEATURE" \ + "REF_RELEASE" \ + "REF_STAGING" \ + "URL_ALMA" \ + "URL_ALPINE" \ + "URL_ARCH" \ + "URL_DEBIAN" \ + "URL_EPEL" \ + "URL_FEDORA" \ + "URL_OPENSUSE" \ + "URL_PYTHON" \ + "URL_ROCKY" \ + "URL_UBUNTU" + for spcd_step_edp__item in "${@}"; do + spcd_step_edp__name="SPCD_${spcd_step_edp__item}" + eval "spcd_step_edp__value=\${${spcd_step_edp__name}}" + if [ -n "${spcd_step_edp__value}" ]; then + spcd_os_printenv + fi + done +} + +spcd_step__environment_defaults_set() { [ -n "${SPCD_CMD_SUM}" ] || SPCD_CMD_SUM="sha512sum" [ -n "${SPCD_DNS_1}" ] || SPCD_DNS_1="9.9.9.9" @@ -1264,7 +1294,9 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}" spcd_main() { # environment spcd_step_in "Environment" - spcd_step__environment_defaults + spcd_step__environment_defaults_print + spcd_step__environment_defaults_set + spcd_step__environment_defaults_print spcd_step__environment_set_variables spcd_step__environment_list_workspace spcd_step_out