diff --git a/spcd/main.sh b/spcd/main.sh index 41e267f..362d414 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -867,8 +867,8 @@ spcd_error_os() { spcd_fill() { spcd_fill__index=${1} - while [ ${spcd_fill__index} -gt 0 ]; do - printf "${2}" + while [ "${spcd_fill__index}" -gt 0 ]; do + printf "%s" "${2}" spcd_fill__index=$((spcd_fill__index - 1)) done }