From 5c0956c09b5cdaa44ab78b2e880bc0329d30c9a9 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 31 Aug 2024 10:03:23 +0200 Subject: [PATCH] modules --- spcd/bootstrap.sh | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index ae8d7ec..2347c58 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -1258,26 +1258,27 @@ index-url = ${SPCD_URL_PYTHON}/simple spcd_step__python_modules() { spcd_step_in "Modules" - spcd_ipm__target="${SPCD_PYTHON_VENV_PACKAGES}" + local target path script check + target="${SPCD_PYTHON_VENV_PACKAGES}" spcd_step "List" - spcd_os_ls "${spcd_ipm__target}" + spcd_os_ls "${target}" spcd_step "Main" - spcd_ipm__path="$(spcd_python_pip "${SPCD_GIT_SPCD}")" + path="$(spcd_python_pip "${SPCD_GIT_SPCD}")" # check matching of file and variable spcd_step "Check" - spcd_ipm__script="${spcd_ipm__path}/bootstrap.sh" - ls -l "${spcd_ipm__script}" - spcd_ipm__check="${spcd_ipm__script}.${SPCD_CMD_SUM}" - "${SPCD_CMD_SUM}" "${spcd_ipm__script}" >"${spcd_ipm__check}" - printf "%s" "${SPCD}" >"${spcd_ipm__script}" - ls -l "${spcd_ipm__script}" - dos2unix "${spcd_ipm__script}" - ls -l "${spcd_ipm__script}" - "${SPCD_CMD_SUM}" -c "${spcd_ipm__check}" || spcd_error_ci "SPCD" + script="${path}/bootstrap.sh" + ls -l "${script}" + 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_step "Root" spcd_python_pip "${SPCD_GIT_RWX}" spcd_step "List" - spcd_os_ls "${spcd_ipm__target}" + spcd_os_ls "${target}" spcd_step_out }