aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-12 07:37:29 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-12 07:37:29 +0200
commit17659ce1983f39720de51b5fb898af515f701206 (patch)
treeda3057beba1b7ac136f7b6d82323b70a88737128 /bin
parent88e9bb162fecb6c44ac07b01e99fca1f69e2f5b6 (diff)
downloadarching-kaos-tools-17659ce1983f39720de51b5fb898af515f701206.tar.gz
arching-kaos-tools-17659ce1983f39720de51b5fb898af515f701206.tar.bz2
arching-kaos-tools-17659ce1983f39720de51b5fb898af515f701206.zip
Caching enabled results and a fix
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ak-schain-latest-cached9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/ak-schain-latest-cached b/bin/ak-schain-latest-cached
new file mode 100755
index 0000000..87d9194
--- /dev/null
+++ b/bin/ak-schain-latest-cached
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+PROGRAM="$(basename $0)"
+source $AK_LIBDIR/logit
+if [ ! -f $AK_WORKDIR/schain.latest ]
+then
+ ak-find-latest-mined-sblock > $AK_WORKDIR/schain.latest
+fi
+cat $AK_WORKDIR/schain.latest