From 465d5db06e56dc21072a8ff01258f6815d340b00 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 27 Mar 2024 09:34:01 +0200 Subject: new lib _ak_ipfs --- bin/ak-zchain-calculate-size | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/ak-zchain-calculate-size') diff --git a/bin/ak-zchain-calculate-size b/bin/ak-zchain-calculate-size index fe99187..51c4202 100755 --- a/bin/ak-zchain-calculate-size +++ b/bin/ak-zchain-calculate-size @@ -1,5 +1,6 @@ #!/bin/bash PROGRAM="$(basename $0)" +source $AK_LIBDIR/_ak_ipfs temp="$(mktemp -d)" @@ -16,7 +17,7 @@ sum=0 ; while IFS="" read -r p || [ -n "$p" ] do if [ "$p" != "" ] then - ak-ipfs-get $p + _ak_ipfs_get $p num="$(du -bs --apparent-size $p | cut -d $'\t' -f 1)" else num=0 -- cgit v1.2.3