From cd2f40f39883073ebfec507914dc5f7fe27ab2ad Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 31 Aug 2024 01:00:55 +0200 Subject: [PATCH] banner/render --- spcd/bootstrap.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 52e0ff3..d3e89a1 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -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