mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
fix a variable name
This commit is contained in:
parent
9514244be9
commit
d7de3bd4cf
2
aosp.sh
2
aosp.sh
@ -21,7 +21,7 @@ function git_repack() {
|
|||||||
while read repo; do
|
while read repo; do
|
||||||
cd $repo
|
cd $repo
|
||||||
size=$(du -sk .|cut -f1)
|
size=$(du -sk .|cut -f1)
|
||||||
total_size=$(($total_size+1024*$sz))
|
total_size=$(($total_size+1024*$size))
|
||||||
if [[ "$size" -gt "100000" ]]; then
|
if [[ "$size" -gt "100000" ]]; then
|
||||||
git repack -a -b -d
|
git repack -a -b -d
|
||||||
fi
|
fi
|
||||||
|
2
cros.sh
2
cros.sh
@ -40,7 +40,7 @@ function git_repack() {
|
|||||||
while read repo; do
|
while read repo; do
|
||||||
cd $repo
|
cd $repo
|
||||||
size=$(du -sk .|cut -f1)
|
size=$(du -sk .|cut -f1)
|
||||||
total_size=$(($total_size+1024*$sz))
|
total_size=$(($total_size+1024*$size))
|
||||||
if [[ "$size" -gt "100000" ]]; then
|
if [[ "$size" -gt "100000" ]]; then
|
||||||
git repack -a -b -d
|
git repack -a -b -d
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user