From 8ab46c1d5928d5df3d23ace9e36a149ccb93734f Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 21 Aug 2024 11:47:17 +0200 Subject: [PATCH] spcd_substep --- spcd.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/spcd.sh b/spcd.sh index 808d706..a5d95c0 100644 --- a/spcd.sh +++ b/spcd.sh @@ -952,7 +952,18 @@ spcd_split() { spcd_step() { SPCD_STEP=$((SPCD_STEP + 1)) SPCD_STEP_TEXT="${*}" - spcd_banner "${SPCD_STEP}" "${SPCD_STEP_TEXT}" + unset SPCD_SUBSTEP + spcd_banner "${SPCD_STEP}" "${SPCD_VERT}" "${SPCD_STEP_TEXT}" +} + +spcd_substep() { + SPCD_SUBSTEP=$((SPCD_SUBSTEP + 1)) + spcd_banner \ + "${SPCD_STEP}.${SPCD_SUBSTEP}" \ + "${SPCD_VERT}" \ + "${SPCD_STEP_TEXT}" \ + "${SPCD_VERT}" \ + "${*}" } spcd_write() {