From a29e296c4e5b967c9addc43b8d41178365b3957e Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 31 Aug 2024 11:46:19 +0200 Subject: [PATCH] sum --- readme.md | 1 - spcd/bootstrap.sh | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/readme.md b/readme.md index 5c32038..c1550fc 100644 --- a/readme.md +++ b/readme.md @@ -125,7 +125,6 @@ Handle project workflows in a unified way: | Variable | Description | Default | |:------------------|:-------------------------|:--------------------------------| | SPCD_CA_n | Numbered CA certificates | | -| SPCD_CMD_SUM | Command to check sums | sha512sum | | SPCD_DNS_n | Numbered name servers | 9.9.9.9 | | SPCD_GIT_RWX | RWX Git repository | rwx | | SPCD_GIT_SHUNIT | ShUnit Git repository | shunit2 | diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index da8ed05..4e3b7a2 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -4,6 +4,8 @@ # │ _ │ # ╰───╯ +_SPCD_CMD_SUM="sha512sum" + _spcd_fill() { local index="${1}" while [ "${index}" -gt 0 ]; do @@ -392,7 +394,6 @@ SPCD_PM_ZYPPER="zypper" spcd_step__environment_defaults_print() { set -- \ \ - "CMD_SUM" \ \ "GIT_RWX" \ "GIT_SPCD" \ @@ -425,7 +426,6 @@ spcd_step__environment_defaults_print() { spcd_step__environment_defaults_set() { spcd_step "$(spcd_txt_get "set")" - [ -n "${SPCD_CMD_SUM}" ] || SPCD_CMD_SUM="sha512sum" [ -n "${SPCD_DNS_1}" ] || SPCD_DNS_1="9.9.9.9" @@ -1268,13 +1268,13 @@ spcd_step__python_modules() { spcd_step "Check" script="${path}/bootstrap.sh" ls -l "${script}" - check="${script}.${SPCD_CMD_SUM}" - "${SPCD_CMD_SUM}" "${script}" >"${check}" + check="${script}.${_SPCD_CMD_SUM}" + "${_SPCD_CMD_SUM}" "${script}" >"${check}" printf "%s" "${SPCD}" >"${script}" ls -l "${script}" dos2unix "${script}" ls -l "${script}" - "${SPCD_CMD_SUM}" -c "${check}" || spcd_error_ci "SPCD" + "${_SPCD_CMD_SUM}" -c "${check}" || spcd_error_ci "SPCD" spcd_step "Root" spcd_python_pip "${SPCD_GIT_RWX}" spcd_step "List"