From 45e8aacd266490b84619be0f38c30bad1b475107 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 10 Dec 2024 19:52:25 +0200 Subject: Workaround for du freebsd variant --- lib/_ak_zchain | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/_ak_zchain') 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 -- cgit v1.2.3