aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_zchain
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-10 19:52:25 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-10 19:52:25 +0200
commit45e8aacd266490b84619be0f38c30bad1b475107 (patch)
treef05cf001a3b7312f9e5d55667a78918f16e510b3 /lib/_ak_zchain
parentfeb392776913df5b1cac4c87a2616190ef0995e9 (diff)
downloadarching-kaos-tools-45e8aacd266490b84619be0f38c30bad1b475107.tar.gz
arching-kaos-tools-45e8aacd266490b84619be0f38c30bad1b475107.tar.bz2
arching-kaos-tools-45e8aacd266490b84619be0f38c30bad1b475107.zip
Workaround for du freebsd variant
Diffstat (limited to 'lib/_ak_zchain')
-rwxr-xr-xlib/_ak_zchain2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_ak_zchain b/lib/_ak_zchain
index b561077..4bc76a0 100755
--- a/lib/_ak_zchain
+++ b/lib/_ak_zchain
@@ -157,7 +157,7 @@ _ak_zchain_calculate_size(){
if [ "$p" != "" ]
then
_ak_ipfs_get $p
- num="$(du -bs --apparent-size $p | cut -d $'\t' -f 1)"
+ num="$( (du -b $p || du -A $p)2>/dev/null | cut -d $'\t' -f 1)"
else
num=0
fi