From e5bc87ffc368799685b9c9bf0e01db35ee974540 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 20 Feb 2022 02:13:54 +0000 Subject: added search functionality --- src/util.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/util.sh') 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) -- cgit v1.2.1