From 8316583e2edbab4e8f496c90f026a18553c95cb5 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 18 Mar 2025 12:06:08 +0100 Subject: [PATCH] Update progress.sh --- src/progress.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/progress.sh b/src/progress.sh index 48daeda..7c344f7 100644 --- a/src/progress.sh +++ b/src/progress.sh @@ -26,7 +26,7 @@ do bytes=$(du -sb "$file" | cut -f1) if (( bytes > 1000 )); then if [ -z "$total" ] || [[ "$total" == "0" ]]; then - size=$(numfmt --to=iec --suffix=B "$bytes" | sed -r 's/([A-Z])/ \1/') + size=$(formatBytes "$bytes") else size="$(echo "$bytes" "$total" | awk '{printf "%.1f", $1 * 100 / $2}')" size="$size%"