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