Skip to content

Commit

Permalink
fix: Shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored May 4, 2024
1 parent 6ea8945 commit 9a55db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/progress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ do
if [ -z "$total" ]; then
size=$(numfmt --to=iec --suffix=B "$bytes" | sed -r 's/([A-Z])/ \1/')
else
size=$(printf '%.1f\n' "$(($bytes*100*100/$total))e-2")
size=$(printf '%.1f\n' "$((bytes*100*100/total))e-2")
size="$size%"
fi
echo "${body//(\[P\])/($size)}"> "$info"
Expand Down

0 comments on commit 9a55db9

Please sign in to comment.