Skip to content

Commit 59d3bfa

Browse files
git: change output format of calc-ed size
1 parent 7186980 commit 59d3bfa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

git-repo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function update_repo_git() {
1515
git repack -a -b -d
1616
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
1717
sz=$(($sz*1024))
18-
echo "size-pack:" $(numfmt --to=iec $sz)
18+
echo "Total size is" $(numfmt --to=iec $sz)
1919
echo "==== SYNC repo.git DONE ===="
2020
}
2121

git.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function update_linux_git() {
2222
[[ "$objs" -gt 8 ]] && git repack -a -b -d
2323
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
2424
sz=$(($sz*1024))
25-
echo "size-pack:" $(numfmt --to=iec $sz)
25+
echo "Total size is" $(numfmt --to=iec $sz)
2626
echo "==== SYNC $UPSTREAM DONE ===="
2727
return $ret
2828
}

0 commit comments

Comments
 (0)