fix the unit

This commit is contained in:
z4yx 2020-03-21 10:55:34 +08:00
parent 31ee06590b
commit 964e22659a
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ function update_repo_git() {
/usr/bin/timeout -s INT 3600 git remote -v update
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 "==== SYNC repo.git DONE ===="
}

1
git.sh
View File

@ -15,6 +15,7 @@ function update_linux_git() {
/usr/bin/timeout -s INT 3600 git remote -v update
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 "==== SYNC $UPSTREAM DONE ===="
}