rename linux.sh to git.sh

This commit is contained in:
z4yx 2020-03-21 10:11:50 +08:00
parent f1aa219ed3
commit 2e7e6150ed

View File

@ -10,7 +10,8 @@ function update_linux_git() {
echo "==== SYNC $UPSTREAM START ===="
/usr/bin/timeout -s INT 3600 git remote -v update
git repack -a -b -d
git count-objects -v -H
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
echo "size-pack:" $(numfmt --to=iec $sz)
echo "==== SYNC $UPSTREAM DONE ===="
}