From 6475063e3e837ab877188718d6db1d143c213e19 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 31 Aug 2024 09:13:25 +0200 Subject: [PATCH] step --- spcd/bootstrap.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 }