summaryrefslogtreecommitdiff
path: root/src/util.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-15 09:53:27 +0000
committerdavidovski <david@davidovski.xyz>2022-03-15 09:53:27 +0000
commiteac3c122678d19e090742d01e348d800d358733a (patch)
treeeeb026a5ec6a32a69d02f6999e441f7d667422a6 /src/util.sh
parent0c0496130f64b4ebe051172af86c0c332db9d5e9 (diff)
refactoringrefactoringrefactoring
Diffstat (limited to 'src/util.sh')
-rw-r--r--src/util.sh2
1 files changed, 1 insertions, 1 deletions
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