spcd_banner_index
This commit is contained in:
parent
619b374337
commit
b4a2a647cd
1 changed files with 16 additions and 0 deletions
16
spcd/main.sh
16
spcd/main.sh
|
@ -1177,6 +1177,22 @@ ${SPCD_BANNER_MIDDLE}
|
|||
${SPCD_BANNER_BOTTOM}"
|
||||
}
|
||||
|
||||
spcd_banner_index() {
|
||||
unset spcd_bi__label
|
||||
unset spcd_bi__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}"
|
||||
else
|
||||
spcd_bi__label="${spcd_bi__value}"
|
||||
fi
|
||||
done
|
||||
echo "${spcd_bi__label}"
|
||||
}
|
||||
|
||||
spcd_banner_open() {
|
||||
spcd_banner_append \
|
||||
"${SPCD_BANNER_DOWN_AND_RIGHT}" \
|
||||
|
|
Loading…
Reference in a new issue