spcd_banner_render/loop
Some checks failed
/ job (push) Failing after 2m55s

This commit is contained in:
Marc Beninca 2024-08-25 17:19:31 +02:00
parent a6bbad3f86
commit 2ac2c86d2c
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1184,10 +1184,12 @@ spcd_banner_render() {
spcd_banner_add_index spcd_banner_add_index
spcd_banner_add "S" spcd_banner_add "S"
# #
for spcd_banner__item in "${SPCD_STEP_TEXT}" "${SPCD_SUBSTEP_TEXT}"; do unset spcd_br__level
if [ -n "${spcd_banner__item}" ]; then while true; do
spcd_banner_add "${spcd_banner__item}" spcd_br__level=$((spcd_br__level + 1))
fi eval "spcd_br__value=\"\${SPCD_BANNER_${spcd_br__level}_LABEL}\""
[ -n "${spcd_br__value}" ] || break
spcd_banner_add "${spcd_br__value}"
done done
# #
spcd_banner_close spcd_banner_close