This commit is contained in:
Marc Beninca 2024-08-31 09:13:25 +02:00
parent 31ca2c6117
commit 6475063e3e
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -299,10 +299,10 @@ spcd_split() {
spcd_step() { spcd_step() {
if [ -n "${1}" ]; then if [ -n "${1}" ]; then
[ -n "${__SPCD_STEP_LEVEL}" ] || __SPCD_STEP_LEVEL=1 [ -n "${__SPCD_STEP_LEVEL}" ] || __SPCD_STEP_LEVEL=1
spcd_step__prefix="__SPCD_STEP_${__SPCD_STEP_LEVEL}" local prefix="__SPCD_STEP_${__SPCD_STEP_LEVEL}"
spcd_step__index="${spcd_step__prefix}_INDEX" local index="${prefix}_INDEX"
eval "${spcd_step__index}=\$((${spcd_step__index} + 1))" eval "${index}=\$((${index} + 1))"
eval "${spcd_step__prefix}_LABEL=\"${1}\"" eval "${prefix}_LABEL=\"${1}\""
_spcd_banner_render _spcd_banner_render
fi fi
} }