From 9122fec6886a3f0f88e9f3c28dc4a268b113856c Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 19 Oct 2025 14:30:50 +0200 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 a5ba4d0..fd64f41 100644 --- a/src/progress.sh +++ b/src/progress.sh @@ -21,7 +21,7 @@ if [[ "$body" == *"..." ]]; then body="

${body::-3}

" fi -cluster=$(stat -f "$path" | grep -m 1 "^Block size:" | cut -d':' -f2 | tail -c+2 | awk {'print $1'}) +cluster=$(stat -f "$path" | grep -m 1 "^Block size:" | cut -d':' -f2 | tail -c+2 | cut -d' ' -f1) total=$(( ( ( total + cluster / 2 ) / cluster ) * cluster )) while true