diff options
Diffstat (limited to 'src/util.sh')
-rw-r--r-- | src/util.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util.sh b/src/util.sh index 82d26ca..11db5e3 100644 --- a/src/util.sh +++ b/src/util.sh @@ -35,7 +35,7 @@ wait_for_download () { local downloaded=0 while [ "$downloaded" -lt "$total_download" ]; do - + downloaded=0 for output in $@; do size=$(stat -c %s $output) downloaded=$((downloaded+size)) @@ -56,8 +56,7 @@ wait_for_extract () { shift while [ "$extracted" -lt "$total_filecount" ]; do - local extracted=0 - + extracted=0 for output in $@; do if [ -f $output ]; then size=$(cat $output | wc -l) |