aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/ak-config12
1 files changed, 6 insertions, 6 deletions
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;;