From d7de3bd4cf9bee091984a6690168a26c2de40bd5 Mon Sep 17 00:00:00 2001 From: z4yx Date: Fri, 20 Mar 2020 17:51:52 +0800 Subject: [PATCH] fix a variable name --- aosp.sh | 2 +- cros.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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