This commit is contained in:
Marc Beninca 2024-08-31 00:55:03 +02:00
parent 6c1dd6fa84
commit 3634ea4a77
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -5,12 +5,11 @@
# ╰───╯ # ╰───╯
_spcd_fill() { _spcd_fill() {
_spcd_fill__index=${1} local index=${1}
while [ "${_spcd_fill__index}" -gt 0 ]; do while [ "${index}" -gt 0 ]; do
printf "%s" "${2}" printf "%s" "${2}"
_spcd_fill__index=$((_spcd_fill__index - 1)) index=$((index - 1))
done done
unset _spcd_fill__index
} }
# ╭───┬────────╮ # ╭───┬────────╮