aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-02-28 08:32:20 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-02-28 08:32:20 +0200
commit54a6cf3bba10027f2cf9d7d641b667c8d9a400ea (patch)
treeb111b2051d26615d95d0b1f0a2a9d8cec4bcfe8e
parent9da29bce4fdd4ca0754f9c505b746d68182f6046 (diff)
downloadarching-kaos-tools-54a6cf3bba10027f2cf9d7d641b667c8d9a400ea.tar.gz
arching-kaos-tools-54a6cf3bba10027f2cf9d7d641b667c8d9a400ea.tar.bz2
arching-kaos-tools-54a6cf3bba10027f2cf9d7d641b667c8d9a400ea.zip
Refactoring
-rwxr-xr-xbin/ak-get-ipfs-hashes-from-my-zchain2
-rwxr-xr-xbin/ak-get-only-ipfs-key-values-from-our-zchain3
-rwxr-xr-xbin/ak-news2
-rwxr-xr-xbin/ak-zchain-extract-data-cids (renamed from bin/ak-get-only-ipfs-key-values-from-our-or-a-zchain)0
4 files changed, 1 insertions, 6 deletions
diff --git a/bin/ak-get-ipfs-hashes-from-my-zchain b/bin/ak-get-ipfs-hashes-from-my-zchain
deleted file mode 100755
index 4d60d13..0000000
--- a/bin/ak-get-ipfs-hashes-from-my-zchain
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-ak-enter | jq -M | grep Qm | sed -e 's/{"zblock":"//g; s/",//; s/".*".*: "//g; s/"//g; s/{//g; s/://g; s/ //g'
diff --git a/bin/ak-get-only-ipfs-key-values-from-our-zchain b/bin/ak-get-only-ipfs-key-values-from-our-zchain
deleted file mode 100755
index 747bb55..0000000
--- a/bin/ak-get-only-ipfs-key-values-from-our-zchain
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-# Outputs all the "ipfs" values from the DATA blocks of our ZCHAIN
-ak-enter | jq | grep ipfs | awk '{print $2}' | sed -e 's/"//g;s/,//g' | sort | uniq
diff --git a/bin/ak-news b/bin/ak-news
index d6f0660..1f265de 100755
--- a/bin/ak-news
+++ b/bin/ak-news
@@ -43,7 +43,7 @@ _ak_modules_news_create(){
_ak_modules_news_index(){
FILES="$(ls -1 $ZNEWSDIR)"
i=0
- ak-get-ipfs-hashes-from-my-zchain | sort | uniq > temp
+ ak-zchain-extract-cids | sort | uniq > temp
for FILE in $FILES
do
DATE="$(echo $FILE | cut -d - -f 1 | awk '{print $1}')"
diff --git a/bin/ak-get-only-ipfs-key-values-from-our-or-a-zchain b/bin/ak-zchain-extract-data-cids
index 303d595..303d595 100755
--- a/bin/ak-get-only-ipfs-key-values-from-our-or-a-zchain
+++ b/bin/ak-zchain-extract-data-cids