mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-06-30 23:12:45 +00:00
git: change output format of calc-ed size
This commit is contained in:
parent
7186980db9
commit
59d3bfaf3e
@ -15,7 +15,7 @@ function update_repo_git() {
|
||||
git repack -a -b -d
|
||||
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
|
||||
sz=$(($sz*1024))
|
||||
echo "size-pack:" $(numfmt --to=iec $sz)
|
||||
echo "Total size is" $(numfmt --to=iec $sz)
|
||||
echo "==== SYNC repo.git DONE ===="
|
||||
}
|
||||
|
||||
|
2
git.sh
2
git.sh
@ -22,7 +22,7 @@ function update_linux_git() {
|
||||
[[ "$objs" -gt 8 ]] && git repack -a -b -d
|
||||
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
|
||||
sz=$(($sz*1024))
|
||||
echo "size-pack:" $(numfmt --to=iec $sz)
|
||||
echo "Total size is" $(numfmt --to=iec $sz)
|
||||
echo "==== SYNC $UPSTREAM DONE ===="
|
||||
return $ret
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user