From 6dcdf960c77a0493f5bc7a98e58669751900fe2a Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 23 Aug 2024 19:58:35 +0200 Subject: [PATCH] spcd_fill --- spcd/main.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spcd/main.sh b/spcd/main.sh index 1e7f9d2..d4ce405 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -865,6 +865,14 @@ spcd_error_os() { exit "${SPCD_ERROR_OS}" } +spcd_fill() { + spcd_fill__index=${1} + while [ ${spcd_fill__index} -gt 0 ]; do + printf "${2}" + spcd_fill__index=$((spcd_fill__index - 1)) + done +} + spcd_git_clone() { if [ -n "${1}" ]; then spcd_gc__name="$(basename "${1}")"