mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
fix the unit
This commit is contained in:
parent
31ee06590b
commit
964e22659a
@ -11,6 +11,7 @@ function update_repo_git() {
|
|||||||
/usr/bin/timeout -s INT 3600 git remote -v update
|
/usr/bin/timeout -s INT 3600 git remote -v update
|
||||||
git repack -a -b -d
|
git repack -a -b -d
|
||||||
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
|
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
|
||||||
|
sz=$(($sz*1024))
|
||||||
echo "size-pack:" $(numfmt --to=iec $sz)
|
echo "size-pack:" $(numfmt --to=iec $sz)
|
||||||
echo "==== SYNC repo.git DONE ===="
|
echo "==== SYNC repo.git DONE ===="
|
||||||
}
|
}
|
||||||
|
1
git.sh
1
git.sh
@ -15,6 +15,7 @@ function update_linux_git() {
|
|||||||
/usr/bin/timeout -s INT 3600 git remote -v update
|
/usr/bin/timeout -s INT 3600 git remote -v update
|
||||||
git repack -a -b -d
|
git repack -a -b -d
|
||||||
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
|
sz=$(git count-objects -v|grep -Po '(?<=size-pack: )\d+')
|
||||||
|
sz=$(($sz*1024))
|
||||||
echo "size-pack:" $(numfmt --to=iec $sz)
|
echo "size-pack:" $(numfmt --to=iec $sz)
|
||||||
echo "==== SYNC $UPSTREAM DONE ===="
|
echo "==== SYNC $UPSTREAM DONE ===="
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user