diff --git a/aosp.sh b/aosp.sh index 394cac1..b737242 100755 --- a/aosp.sh +++ b/aosp.sh @@ -21,7 +21,7 @@ function git_repack() { while read repo; do cd $repo size=$(du -sk .|cut -f1) - total_size=$(($total_size+1024*$sz)) + total_size=$(($total_size+1024*$size)) if [[ "$size" -gt "100000" ]]; then git repack -a -b -d fi diff --git a/cros.sh b/cros.sh index 1145ffb..4531741 100755 --- a/cros.sh +++ b/cros.sh @@ -40,7 +40,7 @@ function git_repack() { while read repo; do cd $repo size=$(du -sk .|cut -f1) - total_size=$(($total_size+1024*$sz)) + total_size=$(($total_size+1024*$size)) if [[ "$size" -gt "100000" ]]; then git repack -a -b -d fi