This commit is contained in:
parent
3362d2edea
commit
4e045dbd8e
1 changed files with 34 additions and 2 deletions
|
@ -330,7 +330,37 @@ SPCD_PM_ZYPPER="zypper"
|
||||||
# │ step │ environment │
|
# │ 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_CMD_SUM}" ] || SPCD_CMD_SUM="sha512sum"
|
||||||
|
|
||||||
[ -n "${SPCD_DNS_1}" ] || SPCD_DNS_1="9.9.9.9"
|
[ -n "${SPCD_DNS_1}" ] || SPCD_DNS_1="9.9.9.9"
|
||||||
|
@ -1264,7 +1294,9 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}"
|
||||||
spcd_main() {
|
spcd_main() {
|
||||||
# environment
|
# environment
|
||||||
spcd_step_in "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_set_variables
|
||||||
spcd_step__environment_list_workspace
|
spcd_step__environment_list_workspace
|
||||||
spcd_step_out
|
spcd_step_out
|
||||||
|
|
Loading…
Reference in a new issue