banner/index
This commit is contained in:
parent
835ad7279c
commit
f257864aba
1 changed files with 10 additions and 9 deletions
|
@ -40,19 +40,20 @@ _spcd_banner_add() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_spcd_banner_add_index() {
|
_spcd_banner_add_index() {
|
||||||
unset spcd_bai__label
|
local label
|
||||||
unset spcd_bai__level
|
local level
|
||||||
|
local value
|
||||||
while true; do
|
while true; do
|
||||||
spcd_bai__level=$((spcd_bai__level + 1))
|
level=$((level + 1))
|
||||||
eval "spcd_bai__value=\"\${__SPCD_STEP_${spcd_bai__level}_INDEX}\""
|
eval "value=\"\${__SPCD_STEP_${level}_INDEX}\""
|
||||||
[ -n "${spcd_bai__value}" ] || break
|
[ -n "${value}" ] || break
|
||||||
if [ -n "${spcd_bai__label}" ]; then
|
if [ -n "${label}" ]; then
|
||||||
spcd_bai__label="${spcd_bai__label}.${spcd_bai__value}"
|
label="${label}.${value}"
|
||||||
else
|
else
|
||||||
spcd_bai__label="${spcd_bai__value}"
|
label="${value}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
_spcd_banner_add "${spcd_bai__label}"
|
_spcd_banner_add "${label}"
|
||||||
}
|
}
|
||||||
|
|
||||||
_spcd_banner_append() {
|
_spcd_banner_append() {
|
||||||
|
|
Loading…
Reference in a new issue