mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-07-01 07:22: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
|
git repack -a -b -d
|
||||||
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
|
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
|
||||||
sz=$(($sz*1024))
|
sz=$(($sz*1024))
|
||||||
echo "size-pack:" $(numfmt --to=iec $sz)
|
echo "Total size is" $(numfmt --to=iec $sz)
|
||||||
echo "==== SYNC repo.git DONE ===="
|
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
|
[[ "$objs" -gt 8 ]] && git repack -a -b -d
|
||||||
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
|
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
|
||||||
sz=$(($sz*1024))
|
sz=$(($sz*1024))
|
||||||
echo "size-pack:" $(numfmt --to=iec $sz)
|
echo "Total size is" $(numfmt --to=iec $sz)
|
||||||
echo "==== SYNC $UPSTREAM DONE ===="
|
echo "==== SYNC $UPSTREAM DONE ===="
|
||||||
return $ret
|
return $ret
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user