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