diff --git a/spcd/main.sh b/spcd/main.sh index 09a1c5a..78722cd 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -1138,19 +1138,19 @@ spcd_banner_add() { } spcd_banner_add_index() { - unset spcd_bi__label - unset spcd_bi__level + unset spcd_bai__label + unset spcd_bai__level while true; do - spcd_bi__level=$((spcd_bi__level + 1)) - eval "spcd_bi__value=\"\${SPCD_BANNER_${spcd_bi__level}_INDEX}\"" - [ -n "${spcd_bi__value}" ] || break - if [ -n "${spcd_bi__label}" ]; then - spcd_bi__label="${spcd_bi__label}.${spcd_bi__value}" + spcd_bai__level=$((spcd_bai__level + 1)) + 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}" else - spcd_bi__label="${spcd_bi__value}" + spcd_bai__label="${spcd_bai__value}" fi done - spcd_banner_add "${spcd_bi__label}" + spcd_banner_add "${spcd_bai__label}" } spcd_banner_append() { @@ -1190,7 +1190,7 @@ spcd_banner_render() { unset spcd_br__level while true; do spcd_br__level=$((spcd_br__level + 1)) - eval "spcd_br__value=\"\${SPCD_BANNER_${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