From 83680bafd73a3d4c2842902c12d0d15a030d849c Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 21 Apr 2023 08:52:43 +0300 Subject: Fixed references to shell variables --- bin/ak-enter | 6 +++--- bin/ak-logthis | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/ak-enter b/bin/ak-enter index 7d51f56..b4d8f5b 100755 --- a/bin/ak-enter +++ b/bin/ak-enter @@ -161,7 +161,7 @@ do # We create files named after each ZBLOCK IPFS CID for later # reference. Files are empty. - touch $ZBLOCKDIR/$zblock + touch $AK_ZBLOCKDIR/$zblock logit "[INFO]" "Created reference" # Supposingly you are on a safe environment and you only have @@ -191,7 +191,7 @@ do source tmp-block logit "[INFO]" "BLOCK $block SOURCED" - touch $BLOCKDIR/$block + touch $AK_BLOCKDIR/$block logit "[INFO]" "BLOCK REFERENCED" module="$(echo $action | sed -e 's/\// /g' | awk '{ print $1 }')" logit "[INFO]" "DATA is $module module." @@ -254,7 +254,7 @@ do # DATA (but we don't source it's stuff) # Only print to stdout #ak-ipfs-cat $data - touch $DATADIR/$data + touch $AK_DATADIR/$data # Now, since we sourced the BLOCK to our terminal, we can search # for $previous variable. In case we don't find one, we append one diff --git a/bin/ak-logthis b/bin/ak-logthis index 347fd0b..e1e55d0 100755 --- a/bin/ak-logthis +++ b/bin/ak-logthis @@ -1,3 +1,3 @@ #!/bin/bash -echo "$(date -u +%s)" "$1" "$2" "$3" >> $LOGSFILE +echo "$(date -u +%s)" "$1" "$2" "$3" >> $AK_LOGSFILE -- cgit v1.2.3