diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-08-20 21:23:47 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-08-20 21:23:47 +0300 |
commit | 398a37f497b048ec39b1e20c4f7b42b8c01d94a2 (patch) | |
tree | 2183e5a095b382a5a9fd74625613582f28e4bf31 /bin/ak-zblock-cache | |
parent | 9dca9167ab62c5c2306e7ea4c3243a2991071461 (diff) | |
download | arching-kaos-tools-398a37f497b048ec39b1e20c4f7b42b8c01d94a2.tar.gz arching-kaos-tools-398a37f497b048ec39b1e20c4f7b42b8c01d94a2.tar.bz2 arching-kaos-tools-398a37f497b048ec39b1e20c4f7b42b8c01d94a2.zip |
Full ZBLOCK cache subfolder is created when it's needed
Diffstat (limited to 'bin/ak-zblock-cache')
-rwxr-xr-x | bin/ak-zblock-cache | 5 |
1 files changed, 5 insertions, 0 deletions
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" ] |