diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-12-10 19:52:25 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-12-10 19:52:25 +0200 |
commit | 45e8aacd266490b84619be0f38c30bad1b475107 (patch) | |
tree | f05cf001a3b7312f9e5d55667a78918f16e510b3 /lib/_ak_zblock | |
parent | feb392776913df5b1cac4c87a2616190ef0995e9 (diff) | |
download | arching-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_zblock')
-rwxr-xr-x | lib/_ak_zblock | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_ak_zblock b/lib/_ak_zblock index 3dff038..9b38d8f 100755 --- a/lib/_ak_zblock +++ b/lib/_ak_zblock @@ -511,7 +511,7 @@ _ak_zblock_cache(){ if [ ! -z "$1" ] && [ -n "$1" ] then - if [ -f "$AK_ZBLOCKDIR/$1" ] && [ "$(du -b $AK_ZBLOCKDIR/$1 | awk '{ print $1 }')" != "0" ] + if [ -f "$AK_ZBLOCKDIR/$1" ] && [ "$( (du -b $AK_ZBLOCKDIR/$1 || du -A $AK_ZBLOCKDIR/$1)2>/dev/null | awk '{ print $1 }')" != "0" ] then # if [ "$(sha512sum $AK_ZBLOCKDIR/$1 | awk '{ print $1 }')" == "$(_ak_zblock_show $1 | sha512sum | awk '{ print $1 }')" ] if [ ! -f $FZBLOCKSDIR/$1 ] |