From 398a37f497b048ec39b1e20c4f7b42b8c01d94a2 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 20 Aug 2023 21:23:47 +0300 Subject: Full ZBLOCK cache subfolder is created when it's needed --- bin/ak-zblock-cache | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin') diff --git a/bin/ak-zblock-cache b/bin/ak-zblock-cache index 1e2213f..f1a1c2b 100755 --- a/bin/ak-zblock-cache +++ b/bin/ak-zblock-cache @@ -4,6 +4,11 @@ logit(){ ak-logthis "<$PROGRAM>" "$1" "$2" } +if [ ! -d "$AK_CACHEDIR/fzblocks" ] +then + mkdir $AK_CACHEDIR/fzblocks +fi + if [ ! -z "$1" ] then if [ -f "$AK_ZBLOCKDIR/$1" ] && [ "$(du -b $AK_ZBLOCKDIR | awk '{ print $1 }')" != "0" ] -- cgit v1.2.3