From 21b91211ecc0ad15bf3d9af572bcf4809e7ab151 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 24 Aug 2024 16:35:32 +0200 Subject: [PATCH] spcd_fill --- spcd/main.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/spcd/main.sh b/spcd/main.sh index 7c22bba..cd1bc70 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -875,14 +875,6 @@ spcd_error_os() { exit "${SPCD_ERROR_OS}" } -spcd_fill() { - spcd_fill__index=${1} - while [ "${spcd_fill__index}" -gt 0 ]; do - printf "%s" "${2}" - spcd_fill__index=$((spcd_fill__index - 1)) - done -} - spcd_git_clone() { if [ -n "${1}" ]; then spcd_gc__name="$(basename "${1}")" @@ -1067,6 +1059,14 @@ SPCD_SHUT="${SPCD_BOX_UP}${SPCD_BOX_LEFT}" # │ internal │ # ╰──────────╯ +spcd_fill() { + spcd_fill__index=${1} + while [ "${spcd_fill__index}" -gt 0 ]; do + printf "%s" "${2}" + spcd_fill__index=$((spcd_fill__index - 1)) + done +} + # ╭──────────┬────────╮ # │ internal │ banner │ # ╰──────────┴────────╯