aboutsummaryrefslogtreecommitdiff
path: root/bin
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
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')
-rwxr-xr-xbin/ak-categories2
-rwxr-xr-xbin/ak-comments2
-rwxr-xr-xbin/ak-config2
-rwxr-xr-xbin/ak-files2
-rwxr-xr-xbin/ak-mixtapes2
-rwxr-xr-xbin/ak-news4
-rwxr-xr-xbin/ak-pack_z_block6
-rwxr-xr-xbin/ak-profile2
-rwxr-xr-xbin/ak-reference2
-rwxr-xr-xbin/ak-sm-files2
-rwxr-xr-xbin/ak-todos2
-rwxr-xr-xbin/ak-transactions2
-rwxr-xr-xbin/ak-zblock-manipulator6
13 files changed, 18 insertions, 18 deletions
diff --git a/bin/ak-categories b/bin/ak-categories
index d72453f..f5a6671 100755
--- a/bin/ak-categories
+++ b/bin/ak-categories
@@ -72,7 +72,7 @@ add(){
TITLE=$(head -n 1 $FILE)
FILE_IPFS_HASH=$(ak-ipfs-add $FILE)
FILE_SIGN_FILE=$FILE".asc"
- gpg --detach-sign --sign-with $FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE
+ gpg --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE
FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE)
cat > data <<EOF
{
diff --git a/bin/ak-comments b/bin/ak-comments
index 416d2a8..3a35efa 100755
--- a/bin/ak-comments
+++ b/bin/ak-comments
@@ -58,7 +58,7 @@ add(){
DATETIME="$1"
FILE_IPFS_HASH=$(ak-ipfs-add $FILE)
FILE_SIGN_FILE=$FILE".asc"
- gpg --detach-sign --sign-with $FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE
+ gpg --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE
FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE)
printf '{"datetime":"%s","ipfs":"%s","detach":"%s"}' $DATETIME $FILE_IPFS_HASH $FILE_SIGNATURE > data
else
diff --git a/bin/ak-config b/bin/ak-config
index 0dfed8e..513c8dc 100755
--- a/bin/ak-config
+++ b/bin/ak-config
@@ -44,7 +44,7 @@ published(){
# We will be using our public key also to put it in the block later
KEY="tmp-gpg.pub"
-gpg2 --armour --output $KEY --export $FINGERPRINT
+gpg2 --armour --output $KEY --export $AK_FINGERPRINT
GPG_PUB_KEY=$(ak-ipfs-add $KEY)
rm $KEY
diff --git a/bin/ak-files b/bin/ak-files
index fe0d279..d663d59 100755
--- a/bin/ak-files
+++ b/bin/ak-files
@@ -63,7 +63,7 @@ main(){
fi
logit "[INFO]" "Signing..."
SIGN_FILE=$FILENAME".asc"
- gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $SIGN_FILE $FILE
+ gpg2 --detach-sign --sign-with $AK_FINGERPRINT --armor --output $SIGN_FILE $FILE
if [ $? == 0 ]; then
logit "[INFO]" "Signed"
else
diff --git a/bin/ak-mixtapes b/bin/ak-mixtapes
index 93ba01b..8c6089d 100755
--- a/bin/ak-mixtapes
+++ b/bin/ak-mixtapes
@@ -13,7 +13,7 @@ main(){
MIXTAPE_IPFS_HASH=$(ak-ipfs-add $MIXTAPE_FILE)
MIXTAPE_SIGN_FILE=$MIXTAPE_FILE".asc"
- gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $MIXTAPE_SIGN_FILE $MIXTAPE_FILE
+ gpg2 --detach-sign --sign-with $AK_FINGERPRINT --armor --output $MIXTAPE_SIGN_FILE $MIXTAPE_FILE
MIXTAPE_SIGNATURE=$(ak-ipfs-add $MIXTAPE_SIGN_FILE)
diff --git a/bin/ak-news b/bin/ak-news
index 1c0a440..2c0e9de 100755
--- a/bin/ak-news
+++ b/bin/ak-news
@@ -90,7 +90,7 @@ add2(){
TITLE=$(head -n 1 $FILE)
FILE_IPFS_HASH=$(ak-ipfs-add $FILE)
FILE_SIGN_FILE=$FILE".asc"
- gpg --detach-sign --sign-with $FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE
+ gpg --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE
FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE)
cat > data <<EOF
{
@@ -124,7 +124,7 @@ add(){
TITLE=$(head -n 1 $ZNEWSDIR/$FILE)
FILE_IPFS_HASH=$(ak-ipfs-add $ZNEWSDIR/$FILE)
FILE_SIGN_FILE=$FILE".asc"
- gpg --detach-sign --sign-with $FINGERPRINT --armor --output $FILE_SIGN_FILE $ZNEWSDIR/$FILE
+ gpg --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $ZNEWSDIR/$FILE
FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE)
cat > data <<EOF
{
diff --git a/bin/ak-pack_z_block b/bin/ak-pack_z_block
index a974c7d..cf51b18 100755
--- a/bin/ak-pack_z_block
+++ b/bin/ak-pack_z_block
@@ -60,14 +60,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 @@ main(){
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)
diff --git a/bin/ak-profile b/bin/ak-profile
index 17cf399..b17decb 100755
--- a/bin/ak-profile
+++ b/bin/ak-profile
@@ -156,7 +156,7 @@ add(){
echo "Adding from " $FILE
FILE_IPFS_HASH=$(ak-ipfs-add $FILE)
FILE_SIGN_FILE=$(pwd)/$1".asc"
- gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE
+ gpg2 --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE
FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE)
cat > data <<EOF
{
diff --git a/bin/ak-reference b/bin/ak-reference
index 4c41005..d277aa0 100755
--- a/bin/ak-reference
+++ b/bin/ak-reference
@@ -93,7 +93,7 @@ add(){
#FILE=$(head -n 1 $FILE)
FILE_IPFS_HASH=$(ak-ipfs-add $FILE)
FILE_SIGN_FILE=$FILE".asc"
- gpg --detach-sign --sign-with $FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE
+ gpg --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE
FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE)
cat > data <<EOF
{
diff --git a/bin/ak-sm-files b/bin/ak-sm-files
index d937763..5868a61 100755
--- a/bin/ak-sm-files
+++ b/bin/ak-sm-files
@@ -77,7 +77,7 @@ main(){
logit "[INFO]" "Signing..."
SIGN_FILE=$FILENAME".asc"
- gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $SIGN_FILE $FILENAME
+ gpg2 --detach-sign --sign-with $AK_FINGERPRINT --armor --output $SIGN_FILE $FILENAME
if [ $? == 0 ]; then
logit "[INFO]" "Signed"
else
diff --git a/bin/ak-todos b/bin/ak-todos
index be2fd86..5be7745 100755
--- a/bin/ak-todos
+++ b/bin/ak-todos
@@ -80,7 +80,7 @@ add(){
TITLE=$(head -n 1 $FILE)
FILE_IPFS_HASH=$(ak-ipfs-add $FILE)
FILE_SIGN_FILE=$FILE".asc"
- gpg --detach-sign --sign-with $FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE
+ gpg --detach-sign --sign-with $AK_FINGERPRINT --armor --output $FILE_SIGN_FILE $FILE
FILE_SIGNATURE=$(ak-ipfs-add $FILE_SIGN_FILE)
cat > data <<EOF
{
diff --git a/bin/ak-transactions b/bin/ak-transactions
index c100774..cc7dddd 100755
--- a/bin/ak-transactions
+++ b/bin/ak-transactions
@@ -20,7 +20,7 @@ EOF
FILE_IPFS_HASH=$(ak-ipfs-add $TRANSACTION_FILE)
SIGN_FILE=$TRANSACTION_FILE".asc"
- gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $SIGN_FILE $TRANSACTION_FILE
+ gpg2 --detach-sign --sign-with $AK_FINGERPRINT --armor --output $SIGN_FILE $TRANSACTION_FILE
FILE_SIGNATURE=$(ak-ipfs-add $SIGN_FILE)
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)