From 1da7813fe8dab6deb3bcbcfe79f4ad44c5f7fe0c Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 27 Feb 2024 06:15:55 +0200 Subject: Moved block to appropriate place --- bin/ak-config | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/ak-config b/bin/ak-config index a5afec5..aee2f7d 100755 --- a/bin/ak-config +++ b/bin/ak-config @@ -17,6 +17,12 @@ _ak_config_usage(){ } _ak_config_show(){ + # We will be using our public key also to put it in the block later + KEY="tmp-gpg.pub" + gpg2 --homedir $AK_GPGHOME --armour --output $KEY --export $AK_FINGERPRINT + GPG_PUB_KEY=$(ak-ipfs-add $KEY) + rm $KEY + echo ' { "profile":'$(ak-profile index | jq -cM)', @@ -48,12 +54,6 @@ _ak_config_published(){ ak-ipfs-cat $(ak-akid-get-ipfs-hash) | jq -c } -# We will be using our public key also to put it in the block later -KEY="tmp-gpg.pub" -gpg2 --homedir $AK_GPGHOME --armour --output $KEY --export $AK_FINGERPRINT -GPG_PUB_KEY=$(ak-ipfs-add $KEY) -rm $KEY - if [ ! -z $1 ]; then case $1 in show) _ak_config_show;exit;; -- cgit v1.2.3