From 59d3bfaf3e823ae04c6a6539f737d1bb7211c21c Mon Sep 17 00:00:00 2001 From: Miao Wang Date: Wed, 7 Jul 2021 01:43:42 +0800 Subject: [PATCH] git: change output format of calc-ed size --- git-repo.sh | 2 +- git.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/git-repo.sh b/git-repo.sh index 3478a5a..b4be8c1 100755 --- a/git-repo.sh +++ b/git-repo.sh @@ -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 ====" } diff --git a/git.sh b/git.sh index b3ba0e0..a33823f 100755 --- a/git.sh +++ b/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 }