aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-03-29 23:58:58 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-03-29 23:58:58 +0300
commitfd4ecb94584c47aba7494972661f7c9da25f8723 (patch)
tree52d2a302a5f27f469701b56d6cbf5dcc402af6a2 /bin
parentd85efb21fa554877b21f08a3ffdd51ebb49c55ca (diff)
downloadarching-kaos-tools-fd4ecb94584c47aba7494972661f7c9da25f8723.tar.gz
arching-kaos-tools-fd4ecb94584c47aba7494972661f7c9da25f8723.tar.bz2
arching-kaos-tools-fd4ecb94584c47aba7494972661f7c9da25f8723.zip
Finished enter to ak-enter
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ak-enter10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/ak-enter b/bin/ak-enter
index c28e44b..7d10266 100755
--- a/bin/ak-enter
+++ b/bin/ak-enter
@@ -6,7 +6,7 @@
#
# 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.
+# $AK_ZLATEST environment variable.
#
# enter [-n IPNS_LINK]
# enter [IPFS CID]
@@ -32,7 +32,7 @@ usage(){
echo " <ipfs-link> Specify IPFS CID for entrance"
echo ""
echo "Note that combined flags don't work for now"
- echo "Running with no flags crawls your chain based on ZLATEST environment variable"
+ echo "Running with no flags crawls your chain based on AK_ZLATEST environment variable"
}
# Start of tests
#entrance="QmW5WVXCJfhb4peHG6cbEdamC24vZzMX2Vz386vpENh38U"
@@ -47,7 +47,7 @@ then
elif [ ! -z "$1" ] && [ "$1" == "-nV" ] || [ "$1" == "--no-verify" ]
then
verify=0
- entrance="$(cat $ZLATEST)"
+ entrance="$(cat $AK_ZLATEST)"
elif [ ! -z "$1" ] && [ "$1" == "-n" ]
then
entrance="$(ipns-resolve $2)"
@@ -63,12 +63,12 @@ then
else
# By default we enter from the latest block
# We can alter this by changing this value
- entrance="$(cat $ZLATEST)"
+ entrance="$(cat $AK_ZLATEST)"
fi
# We assign the IPFS CIDv0 of an empty file as this is used
# as our GENESIS block, hence the "seed" that the tree grows
# from.
-seed="$(cat $ZGENESIS)"
+seed="$(cat $AK_ZGENESIS)"
# We assume that we found the entrance inside a block, hence
# ZBLOCK is labeled as previous