This commit is contained in:
parent
252cb1b1de
commit
abf78e4d65
1 changed files with 10 additions and 10 deletions
20
spcd/main.sh
20
spcd/main.sh
|
@ -1138,19 +1138,19 @@ spcd_banner_add() {
|
|||
}
|
||||
|
||||
spcd_banner_add_index() {
|
||||
unset spcd_bi__label
|
||||
unset spcd_bi__level
|
||||
unset spcd_bai__label
|
||||
unset spcd_bai__level
|
||||
while true; do
|
||||
spcd_bi__level=$((spcd_bi__level + 1))
|
||||
eval "spcd_bi__value=\"\${SPCD_BANNER_${spcd_bi__level}_INDEX}\""
|
||||
[ -n "${spcd_bi__value}" ] || break
|
||||
if [ -n "${spcd_bi__label}" ]; then
|
||||
spcd_bi__label="${spcd_bi__label}.${spcd_bi__value}"
|
||||
spcd_bai__level=$((spcd_bai__level + 1))
|
||||
eval "spcd_bai__value=\"\${SPCD_STEP_${spcd_bai__level}_INDEX}\""
|
||||
[ -n "${spcd_bai__value}" ] || break
|
||||
if [ -n "${spcd_bai__label}" ]; then
|
||||
spcd_bai__label="${spcd_bai__label}.${spcd_bai__value}"
|
||||
else
|
||||
spcd_bi__label="${spcd_bi__value}"
|
||||
spcd_bai__label="${spcd_bai__value}"
|
||||
fi
|
||||
done
|
||||
spcd_banner_add "${spcd_bi__label}"
|
||||
spcd_banner_add "${spcd_bai__label}"
|
||||
}
|
||||
|
||||
spcd_banner_append() {
|
||||
|
@ -1190,7 +1190,7 @@ spcd_banner_render() {
|
|||
unset spcd_br__level
|
||||
while true; do
|
||||
spcd_br__level=$((spcd_br__level + 1))
|
||||
eval "spcd_br__value=\"\${SPCD_BANNER_${spcd_br__level}_LABEL}\""
|
||||
eval "spcd_br__value=\"\${SPCD_STEP_${spcd_br__level}_LABEL}\""
|
||||
[ -n "${spcd_br__value}" ] || break
|
||||
spcd_banner_add "${spcd_br__value}"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue