aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-zblock-manipulator
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-07-30 20:06:37 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-07-30 20:06:37 +0300
commitd512be24515b0afb669578d16576fe2db840990b (patch)
tree2493e0cd67c1e1450d427d83914e2462d4dee5f7 /bin/ak-zblock-manipulator
parentc6469c308c62218884077a81c3544e9b0128327f (diff)
downloadarching-kaos-tools-d512be24515b0afb669578d16576fe2db840990b.tar.gz
arching-kaos-tools-d512be24515b0afb669578d16576fe2db840990b.tar.bz2
arching-kaos-tools-d512be24515b0afb669578d16576fe2db840990b.zip
Renamed FINGERPRINT to AK_FINGERPRINT
Diffstat (limited to 'bin/ak-zblock-manipulator')
-rwxr-xr-xbin/ak-zblock-manipulator6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ak-zblock-manipulator b/bin/ak-zblock-manipulator
index 0076fa1..2f75fbf 100755
--- a/bin/ak-zblock-manipulator
+++ b/bin/ak-zblock-manipulator
@@ -49,14 +49,14 @@ main(){
# We create a detached and armor signature of it
MESSAGE_SIGN_FILE=$MESSAGE".asc"
- gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $MESSAGE_SIGN_FILE $MESSAGE
+ gpg2 --detach-sign --sign-with $AK_FINGERPRINT --armor --output $MESSAGE_SIGN_FILE $MESSAGE
# We add the signature to IPFS
MESSAGE_SIGNATURE=$(ak-ipfs-add $MESSAGE_SIGN_FILE)
# We will be using our public key also to put it in the block later
KEY="gpg.pub"
- gpg2 --armour --output $KEY --export $FINGERPRINT
+ gpg2 --armour --output $KEY --export $AK_FINGERPRINT
GPG_PUB_KEY=$(ak-ipfs-add $KEY)
# Acquire last block of information, to chain this one with previous posted
@@ -78,7 +78,7 @@ makeZBlock(){
BLOCK="block"
BLOCK_SIG=$BLOCK".asc"
# We have a block now, so we sign it
- gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $BLOCK_SIG $BLOCK
+ gpg2 --detach-sign --sign-with $AK_FINGERPRINT --armor --output $BLOCK_SIG $BLOCK
# We now add the signature to IPFS
BLOCK_SIGNATURE=$(ak-ipfs-add $BLOCK_SIG)