From e41ae82a1b53032bef4df0db762a08225caca4f9 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 15 Feb 2025 17:59:03 +0200 Subject: Breaking changes, the gpg field inside config is an object now! --- lib/_ak_config | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lib/_ak_config') diff --git a/lib/_ak_config b/lib/_ak_config index d8705d8..f8b1460 100755 --- a/lib/_ak_config +++ b/lib/_ak_config @@ -31,7 +31,10 @@ function _ak_config_show(){ { "profile":'$profile', "genesis":"'$(cat $AK_WORKDIR/config/zgenesis)'", - "gpg":"'$GPG_PUB_KEY'", + "gpg":{ + "ipfs":"'$GPG_PUB_KEY'", + "fingerprint":"'$(ak gpg --get-key-fingerprint-from-ipfs $GPG_PUB_KEY)'" + }, "zchain":"'$(cat $AK_WORKDIR/config/zchain)'", "zlatest":"'$(ak zchain --get-latest)'" }'| jq; @@ -43,8 +46,9 @@ function _ak_config_publish(){ _ak_ipfs_config_publish $ipfs_hash if [ $? != 0 ] then - echo -e "\033[0;34mError on publishing\033[0;0m\nYour information:\n" - cat tmpfile + _ak_log_error "Error on publishing" + _ak_log_debug "Your information:" + cat tmpfile | while read line; do _ak_log_debug "$line"; done exit 1 fi rm tmpfile -- cgit v1.2.3