diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index c80c600..7da2871 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -299,10 +299,10 @@ spcd_split() { spcd_step() { if [ -n "${1}" ]; then [ -n "${__SPCD_STEP_LEVEL}" ] || __SPCD_STEP_LEVEL=1 - spcd_step__prefix="__SPCD_STEP_${__SPCD_STEP_LEVEL}" - spcd_step__index="${spcd_step__prefix}_INDEX" - eval "${spcd_step__index}=\$((${spcd_step__index} + 1))" - eval "${spcd_step__prefix}_LABEL=\"${1}\"" + local prefix="__SPCD_STEP_${__SPCD_STEP_LEVEL}" + local index="${prefix}_INDEX" + eval "${index}=\$((${index} + 1))" + eval "${prefix}_LABEL=\"${1}\"" _spcd_banner_render fi }