aboutsummaryrefslogtreecommitdiff
path: root/api/make_cache.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-08-20 21:03:03 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-08-20 21:03:03 +0300
commit1a96713b1a5fc0832f83781b5bd96fe870fb5a23 (patch)
treeb94deb75ef05c70b9216e43a3fbf8a9f7d6ec980 /api/make_cache.sh
parentfeb828c6ca4af1708c4c204a86150f37ca3eaa0e (diff)
downloadarching-kaos-tools-1a96713b1a5fc0832f83781b5bd96fe870fb5a23.tar.gz
arching-kaos-tools-1a96713b1a5fc0832f83781b5bd96fe870fb5a23.tar.bz2
arching-kaos-tools-1a96713b1a5fc0832f83781b5bd96fe870fb5a23.zip
Cache folder initial appearence
Diffstat (limited to 'api/make_cache.sh')
-rwxr-xr-x[-rw-r--r--]api/make_cache.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/api/make_cache.sh b/api/make_cache.sh
index b9e7cb9..03dab99 100644..100755
--- a/api/make_cache.sh
+++ b/api/make_cache.sh
@@ -1,4 +1,9 @@
+#!/bin/bash
AK_CACHE="$AK_WORKDIR/cache"
+if [ ! -d $AK_CACHE ]
+then
+ mkdir $AK_CACHE
+fi
ak-find-latest-mined-sblock > $AK_CACHE/ak-find-latest-mined-sblock.json
ak-get-chain-minified > $AK_CACHE/ak-get-chain-minified.json