From eac3c122678d19e090742d01e348d800d358733a Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 15 Mar 2022 09:53:27 +0000 Subject: refactoringrefactoringrefactoring --- src/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util.sh') diff --git a/src/util.sh b/src/util.sh index 11db5e3..98af40b 100644 --- a/src/util.sh +++ b/src/util.sh @@ -37,7 +37,7 @@ wait_for_download () { while [ "$downloaded" -lt "$total_download" ]; do downloaded=0 for output in $@; do - size=$(stat -c %s $output) + size=$(stat -t $output | cut -d" " -f2) downloaded=$((downloaded+size)) done -- cgit v1.2.1