aboutsummaryrefslogtreecommitdiff
path: root/bin/enter
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2022-09-07 14:28:43 +0300
committerkaotisk <kaotisk@arching-kaos.org>2022-09-07 14:28:43 +0300
commitdbcf60db8d077772b024428867ae1f8997013aeb (patch)
tree1b9426c056d03c73e30219871bdb094fbd723ed6 /bin/enter
parent1d5fa45dbc08be1842d7df86aafa056745f772e4 (diff)
downloadarching-kaos-tools-dbcf60db8d077772b024428867ae1f8997013aeb.tar.gz
arching-kaos-tools-dbcf60db8d077772b024428867ae1f8997013aeb.tar.bz2
arching-kaos-tools-dbcf60db8d077772b024428867ae1f8997013aeb.zip
Removed trailing spaces
Diffstat (limited to 'bin/enter')
-rwxr-xr-xbin/enter18
1 files changed, 16 insertions, 2 deletions
diff --git a/bin/enter b/bin/enter
index 4531e71..9b6c279 100755
--- a/bin/enter
+++ b/bin/enter
@@ -1,4 +1,18 @@
#!/bin/bash
+# enter
+#
+# Using this tool, we can seek a whole chain if available from an
+# IPFS CID or an IPNS link. Default (no arguments) will retrieve
+# the local ZCHAIN starting from the IPFS CID stored in the file
+# that is tracked by the $ZLATEST environment variable.
+#
+# enter [-n IPNS_LINK]
+# enter [IPFS CID]
+# enter
+#
+# Returns a JSON array representing the chain retrieved and logs
+# messages to LOGSFILE
+
usage(){
echo "enter - Crawl an arching kaos chain"
echo "-----------------------------------"
@@ -272,7 +286,7 @@ do
else
#echo "$zblock after $previous"
logthis "[INFO]" "Found a previous block: $previous"
- echo '"previous":"'$previous'"},'
+ echo '"previous":"'$previous'"},'
zblock=$previous
fi
@@ -287,7 +301,7 @@ do
exit 0
fi
# And finally, if nothing is there exit with error
- else
+ else
echo "Check not passed... No previous IPFS CID"
exit 1
fi