aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-zblock-cache
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-04-03 08:22:39 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-04-03 08:22:39 +0300
commit2f11539eef545fc0a9761693ae55e837b460beac (patch)
tree566e38f9aee9f0ffc3bc68877ed20767182492c7 /bin/ak-zblock-cache
parent05ea0e3dca7209d1490658014c5e598e4d4dfdc4 (diff)
downloadarching-kaos-tools-2f11539eef545fc0a9761693ae55e837b460beac.tar.gz
arching-kaos-tools-2f11539eef545fc0a9761693ae55e837b460beac.tar.bz2
arching-kaos-tools-2f11539eef545fc0a9761693ae55e837b460beac.zip
Added ak-zblock-show with appropriate route in API with caching feature
Diffstat (limited to 'bin/ak-zblock-cache')
-rwxr-xr-xbin/ak-zblock-cache11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/ak-zblock-cache b/bin/ak-zblock-cache
new file mode 100755
index 0000000..6551796
--- /dev/null
+++ b/bin/ak-zblock-cache
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+if [ ! -z "$1" ]
+then
+ ak-zblock-show "$1" > $AK_ZBLOCKDIR/$1
+ exit 0
+else
+ echo not ok
+ exit 1
+fi
+