aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-07-20 17:30:27 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-07-20 17:30:27 +0300
commit1568fa2be103bd26b643133b1f68ae0dd7974134 (patch)
treed2b53f450b2b74d44f7e3ecfc605df94f55e13f8 /lib
parentce046ca6bb56e2980f9212412066ef8e7dbb8916 (diff)
downloadarching-kaos-tools-1568fa2be103bd26b643133b1f68ae0dd7974134.tar.gz
arching-kaos-tools-1568fa2be103bd26b643133b1f68ae0dd7974134.tar.bz2
arching-kaos-tools-1568fa2be103bd26b643133b1f68ae0dd7974134.zip
new function _ak_zchain_extract_cids_limit() for future usage
Diffstat (limited to 'lib')
-rwxr-xr-xlib/_ak_zchain10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/_ak_zchain b/lib/_ak_zchain
index dd9400c..a5203a7 100755
--- a/lib/_ak_zchain
+++ b/lib/_ak_zchain
@@ -87,6 +87,16 @@ _ak_zchain_extract_cids(){
fi
}
+_ak_zchain_extract_cids_limit(){
+ if [ ! -z $1 ] && [ -n "$1" ] && [ ! -z $2 ] && [ -n "$2" ]
+
+ then
+ _ak_zchain_crawl -l $2 $1 | jq -M | grep Qm | sed -e 's/".*"://g; s/ //g; s/[{,"]//g' | sort | uniq
+ else
+ _ak_zchain_crawl | jq -M | grep Qm | sed -e 's/".*"://g; s/ //g; s/[{,"]//g' | sort | uniq
+ fi
+}
+
_ak_zchain_extract_data_cids(){
if [ ! -z $1 ]
then