This commit is contained in:
Marc Beninca 2024-08-31 09:19:46 +02:00
parent b00e8881a4
commit 5053dca4fb
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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
}