aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-04-21 08:52:43 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-04-21 08:52:43 +0300
commit83680bafd73a3d4c2842902c12d0d15a030d849c (patch)
tree16baa041355d81290776f6522bf43a6dbafb13ef
parent5c9c4b177400c5279b6a7c3f05e9be113cf5458b (diff)
downloadarching-kaos-tools-83680bafd73a3d4c2842902c12d0d15a030d849c.tar.gz
arching-kaos-tools-83680bafd73a3d4c2842902c12d0d15a030d849c.tar.bz2
arching-kaos-tools-83680bafd73a3d4c2842902c12d0d15a030d849c.zip
Fixed references to shell variables
-rwxr-xr-xbin/ak-enter6
-rwxr-xr-xbin/ak-logthis2
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