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_index
#
unset spcd_br__level
local level
local value
while true; do
spcd_br__level=$((spcd_br__level + 1))
eval "spcd_br__value=\"\${__SPCD_STEP_${spcd_br__level}_LABEL}\""
[ -n "${spcd_br__value}" ] || break
_spcd_banner_add "${spcd_br__value}"
level=$((level + 1))
eval "value=\"\${__SPCD_STEP_${level}_LABEL}\""
[ -n "${value}" ] || break
_spcd_banner_add "${value}"
done
#
_spcd_banner_shut