From 2e7e6150eddf73a1bfd325f21c006b215767b4b9 Mon Sep 17 00:00:00 2001 From: z4yx Date: Sat, 21 Mar 2020 10:11:50 +0800 Subject: [PATCH] rename linux.sh to git.sh --- linux.sh => git.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename linux.sh => git.sh (83%) diff --git a/linux.sh b/git.sh similarity index 83% rename from linux.sh rename to git.sh index 8a36952..fcf8aca 100755 --- a/linux.sh +++ b/git.sh @@ -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 ====" }