steps/fixes
All checks were successful
/ job (push) Successful in 3m16s

This commit is contained in:
Marc Beninca 2024-08-25 18:26:16 +02:00
parent 252cb1b1de
commit abf78e4d65
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1138,19 +1138,19 @@ spcd_banner_add() {
} }
spcd_banner_add_index() { spcd_banner_add_index() {
unset spcd_bi__label unset spcd_bai__label
unset spcd_bi__level unset spcd_bai__level
while true; do while true; do
spcd_bi__level=$((spcd_bi__level + 1)) spcd_bai__level=$((spcd_bai__level + 1))
eval "spcd_bi__value=\"\${SPCD_BANNER_${spcd_bi__level}_INDEX}\"" eval "spcd_bai__value=\"\${SPCD_STEP_${spcd_bai__level}_INDEX}\""
[ -n "${spcd_bi__value}" ] || break [ -n "${spcd_bai__value}" ] || break
if [ -n "${spcd_bi__label}" ]; then if [ -n "${spcd_bai__label}" ]; then
spcd_bi__label="${spcd_bi__label}.${spcd_bi__value}" spcd_bai__label="${spcd_bai__label}.${spcd_bai__value}"
else else
spcd_bi__label="${spcd_bi__value}" spcd_bai__label="${spcd_bai__value}"
fi fi
done done
spcd_banner_add "${spcd_bi__label}" spcd_banner_add "${spcd_bai__label}"
} }
spcd_banner_append() { spcd_banner_append() {
@ -1190,7 +1190,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_BANNER_${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