From 5053dca4fb73b8e42a71d61bcc896b7f8b0f27d0 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 31 Aug 2024 09:19:46 +0200 Subject: [PATCH] print --- spcd/bootstrap.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index c7028d0..cdd163f 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -410,11 +410,14 @@ spcd_step__environment_defaults_print() { "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 "${spcd_step_edp__name}" + local item + local name + local value + for item in "${@}"; do + name="SPCD_${item}" + eval "value=\"\${${name}}\"" + if [ -n "${value}" ]; then + spcd_os_printenv "${name}" fi done }