diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-02-27 06:15:55 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-02-27 06:15:55 +0200 |
commit | 1da7813fe8dab6deb3bcbcfe79f4ad44c5f7fe0c (patch) | |
tree | 28280e2be01fb63e66c696a8a0bb804e28568180 | |
parent | 94c6cd43413f266f0db898cfb3fc7a9833509ef8 (diff) | |
download | arching-kaos-tools-1da7813fe8dab6deb3bcbcfe79f4ad44c5f7fe0c.tar.gz arching-kaos-tools-1da7813fe8dab6deb3bcbcfe79f4ad44c5f7fe0c.tar.bz2 arching-kaos-tools-1da7813fe8dab6deb3bcbcfe79f4ad44c5f7fe0c.zip |
Moved block to appropriate place
-rwxr-xr-x | bin/ak-config | 12 |
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;; |