aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-zblock-show
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-31 12:00:59 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-03-31 12:00:59 +0300
commite4f18be94261b39544ef3bc50321f6aedeb45bd6 (patch)
tree2c79daf0bdc91beb91846f00bb3d3f51236967cf /bin/ak-zblock-show
parent23a61661f03c03a357ad8aa47ba3595fabe24de1 (diff)
downloadarching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.tar.gz
arching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.tar.bz2
arching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.zip
huge refactor, might breaking things
Diffstat (limited to 'bin/ak-zblock-show')
-rwxr-xr-xbin/ak-zblock-show36
1 files changed, 0 insertions, 36 deletions
diff --git a/bin/ak-zblock-show b/bin/ak-zblock-show
deleted file mode 100755
index 4cbe02e..0000000
--- a/bin/ak-zblock-show
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/bash
-# ak-zblock-show
-# ak-zblock [IPFS CID]
-#
-# Returns a JSON array representing the chain retrieved.
-# Logs messages to $LOGSFILE.
-
-PROGRAM="$(basename $0)"
-
-source $AK_LIBDIR/_ak_logit
-
-usage(){
- echo "$PROGRAM - Show a zblock"
- echo ""
- echo "$PROGRAM <zblock_hash>"
- echo "Usage:"
- echo " --help, -h Print this help and exit"
-}
-verify=1
-if [ ! -z "$1" ] && [ "$1" == "-h" ] || [ "$1" == "--help" ]
-then
- usage
- exit
-elif [ ! -z "$1" ]
-then
- echo $1 | grep -e 'Qm.\{44\}' >/dev/null
- if [ "$?" -ne 0 ]
- then
- logit "ERROR" "Argument provided ($1) was not an IPFS CIDv0 string"
- exit 1
- fi
- entrance="$1"
-else
- entrance="$(cat $AK_ZLATEST)"
-fi
-ak-enter -l 1 "$entrance" > "$AK_CACHEDIR/fzblocks/$entrance"