diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-27 09:34:01 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-27 09:34:01 +0200 |
commit | 465d5db06e56dc21072a8ff01258f6815d340b00 (patch) | |
tree | ae16ecf2f980b054caa2f97f48e8fa5f22b768a6 /bin/ak-zchain-calculate-size | |
parent | 1cb6c8bef840a96baa37392e9833a7674f805a83 (diff) | |
download | arching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.tar.gz arching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.tar.bz2 arching-kaos-tools-465d5db06e56dc21072a8ff01258f6815d340b00.zip |
new lib _ak_ipfs
Diffstat (limited to 'bin/ak-zchain-calculate-size')
-rwxr-xr-x | bin/ak-zchain-calculate-size | 3 |
1 files changed, 2 insertions, 1 deletions
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 |