__/step
This commit is contained in:
parent
c823709b4f
commit
3a35802eb8
1 changed files with 6 additions and 6 deletions
|
@ -84,7 +84,7 @@ _spcd_banner_add_index() {
|
||||||
unset spcd_bai__level
|
unset spcd_bai__level
|
||||||
while true; do
|
while true; do
|
||||||
spcd_bai__level=$((spcd_bai__level + 1))
|
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
|
[ -n "${spcd_bai__value}" ] || break
|
||||||
if [ -n "${spcd_bai__label}" ]; then
|
if [ -n "${spcd_bai__label}" ]; then
|
||||||
spcd_bai__label="${spcd_bai__label}.${spcd_bai__value}"
|
spcd_bai__label="${spcd_bai__label}.${spcd_bai__value}"
|
||||||
|
@ -125,7 +125,7 @@ _spcd_banner_render() {
|
||||||
unset spcd_br__level
|
unset spcd_br__level
|
||||||
while true; do
|
while true; do
|
||||||
spcd_br__level=$((spcd_br__level + 1))
|
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
|
[ -n "${spcd_br__value}" ] || break
|
||||||
_spcd_banner_add "${spcd_br__value}"
|
_spcd_banner_add "${spcd_br__value}"
|
||||||
done
|
done
|
||||||
|
@ -206,8 +206,8 @@ _SPCD_STEP_LEVEL=1
|
||||||
|
|
||||||
_spcd_step_wipe() {
|
_spcd_step_wipe() {
|
||||||
unset \
|
unset \
|
||||||
"SPCD_STEP_${_SPCD_STEP_LEVEL}_INDEX" \
|
"__SPCD_STEP_${_SPCD_STEP_LEVEL}_INDEX" \
|
||||||
"SPCD_STEP_${_SPCD_STEP_LEVEL}_LABEL"
|
"__SPCD_STEP_${_SPCD_STEP_LEVEL}_LABEL"
|
||||||
}
|
}
|
||||||
|
|
||||||
# ╭───────────╮
|
# ╭───────────╮
|
||||||
|
@ -376,7 +376,7 @@ spcd_split() {
|
||||||
|
|
||||||
spcd_step() {
|
spcd_step() {
|
||||||
if [ -n "${1}" ]; then
|
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"
|
spcd_step__index="${spcd_step__prefix}_INDEX"
|
||||||
eval "${spcd_step__index}=\$((${spcd_step__index} + 1))"
|
eval "${spcd_step__index}=\$((${spcd_step__index} + 1))"
|
||||||
eval "${spcd_step__prefix}_LABEL=\"${1}\""
|
eval "${spcd_step__prefix}_LABEL=\"${1}\""
|
||||||
|
@ -1216,7 +1216,7 @@ spcd_python_write_module() {
|
||||||
spcd_wpm__text="${spcd_wpm__text}${spcd_wpm__value}
|
spcd_wpm__text="${spcd_wpm__text}${spcd_wpm__value}
|
||||||
"
|
"
|
||||||
done
|
done
|
||||||
spcd_wpm__index=$((SPCD_STEP_1_INDEX + 1))
|
spcd_wpm__index=$((__SPCD_STEP_1_INDEX + 1))
|
||||||
for spcd_wpm__root in \
|
for spcd_wpm__root in \
|
||||||
"${SPCD_PYTHON_PACKAGES}" "${SPCD_PYTHON_VENV_PACKAGES}"; do
|
"${SPCD_PYTHON_PACKAGES}" "${SPCD_PYTHON_VENV_PACKAGES}"; do
|
||||||
spcd_os_write "${spcd_wpm__root}/env.py" "${spcd_wpm__text}
|
spcd_os_write "${spcd_wpm__root}/env.py" "${spcd_wpm__text}
|
||||||
|
|
Loading…
Reference in a new issue