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() {
|
spcd_banner_add_index() {
|
||||||
unset spcd_bi__label
|
unset spcd_bai__label
|
||||||
unset spcd_bi__level
|
unset spcd_bai__level
|
||||||
while true; do
|
while true; do
|
||||||
spcd_bi__level=$((spcd_bi__level + 1))
|
spcd_bai__level=$((spcd_bai__level + 1))
|
||||||
eval "spcd_bi__value=\"\${SPCD_BANNER_${spcd_bi__level}_INDEX}\""
|
eval "spcd_bai__value=\"\${SPCD_STEP_${spcd_bai__level}_INDEX}\""
|
||||||
[ -n "${spcd_bi__value}" ] || break
|
[ -n "${spcd_bai__value}" ] || break
|
||||||
if [ -n "${spcd_bi__label}" ]; then
|
if [ -n "${spcd_bai__label}" ]; then
|
||||||
spcd_bi__label="${spcd_bi__label}.${spcd_bi__value}"
|
spcd_bai__label="${spcd_bai__label}.${spcd_bai__value}"
|
||||||
else
|
else
|
||||||
spcd_bi__label="${spcd_bi__value}"
|
spcd_bai__label="${spcd_bai__value}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
spcd_banner_add "${spcd_bi__label}"
|
spcd_banner_add "${spcd_bai__label}"
|
||||||
}
|
}
|
||||||
|
|
||||||
spcd_banner_append() {
|
spcd_banner_append() {
|
||||||
|
@ -1190,7 +1190,7 @@ spcd_banner_render() {
|
||||||
unset spcd_br__level
|
unset spcd_br__level
|
||||||
while true; do
|
while true; do
|
||||||
spcd_br__level=$((spcd_br__level + 1))
|
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
|
[ -n "${spcd_br__value}" ] || break
|
||||||
spcd_banner_add "${spcd_br__value}"
|
spcd_banner_add "${spcd_br__value}"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue