From 3a35802eb86cb73ccdc33f3f8fb3abd50da42d3c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 26 Aug 2024 16:19:21 +0200 Subject: [PATCH] __/step --- spcd/bootstrap.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 2edd1c7..7ad7504 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -84,7 +84,7 @@ _spcd_banner_add_index() { unset spcd_bai__level while true; do spcd_bai__level=$((spcd_bai__level + 1)) - eval "spcd_bai__value=\"\${SPCD_STEP_${spcd_bai__level}_INDEX}\"" + eval "spcd_bai__value=\"\${__SPCD_STEP_${spcd_bai__level}_INDEX}\"" [ -n "${spcd_bai__value}" ] || break if [ -n "${spcd_bai__label}" ]; then spcd_bai__label="${spcd_bai__label}.${spcd_bai__value}" @@ -125,7 +125,7 @@ _spcd_banner_render() { unset spcd_br__level while true; do spcd_br__level=$((spcd_br__level + 1)) - eval "spcd_br__value=\"\${SPCD_STEP_${spcd_br__level}_LABEL}\"" + eval "spcd_br__value=\"\${__SPCD_STEP_${spcd_br__level}_LABEL}\"" [ -n "${spcd_br__value}" ] || break _spcd_banner_add "${spcd_br__value}" done @@ -206,8 +206,8 @@ _SPCD_STEP_LEVEL=1 _spcd_step_wipe() { unset \ - "SPCD_STEP_${_SPCD_STEP_LEVEL}_INDEX" \ - "SPCD_STEP_${_SPCD_STEP_LEVEL}_LABEL" + "__SPCD_STEP_${_SPCD_STEP_LEVEL}_INDEX" \ + "__SPCD_STEP_${_SPCD_STEP_LEVEL}_LABEL" } # ╭───────────╮ @@ -376,7 +376,7 @@ spcd_split() { spcd_step() { if [ -n "${1}" ]; then - spcd_step__prefix="SPCD_STEP_${_SPCD_STEP_LEVEL}" + spcd_step__prefix="__SPCD_STEP_${_SPCD_STEP_LEVEL}" spcd_step__index="${spcd_step__prefix}_INDEX" eval "${spcd_step__index}=\$((${spcd_step__index} + 1))" eval "${spcd_step__prefix}_LABEL=\"${1}\"" @@ -1216,7 +1216,7 @@ spcd_python_write_module() { spcd_wpm__text="${spcd_wpm__text}${spcd_wpm__value} " done - spcd_wpm__index=$((SPCD_STEP_1_INDEX + 1)) + spcd_wpm__index=$((__SPCD_STEP_1_INDEX + 1)) for spcd_wpm__root in \ "${SPCD_PYTHON_PACKAGES}" "${SPCD_PYTHON_VENV_PACKAGES}"; do spcd_os_write "${spcd_wpm__root}/env.py" "${spcd_wpm__text}