banner/render

This commit is contained in:
Marc Beninca 2024-08-31 01:00:55 +02:00
parent f257864aba
commit cd2f40f398
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -83,12 +83,13 @@ _spcd_banner_render() {
_spcd_banner_add "S" _spcd_banner_add "S"
_spcd_banner_add_index _spcd_banner_add_index
# #
unset spcd_br__level local level
local value
while true; do while true; do
spcd_br__level=$((spcd_br__level + 1)) level=$((level + 1))
eval "spcd_br__value=\"\${__SPCD_STEP_${spcd_br__level}_LABEL}\"" eval "value=\"\${__SPCD_STEP_${level}_LABEL}\""
[ -n "${spcd_br__value}" ] || break [ -n "${value}" ] || break
_spcd_banner_add "${spcd_br__value}" _spcd_banner_add "${value}"
done done
# #
_spcd_banner_shut _spcd_banner_shut