aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_config
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-28 15:59:04 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-28 15:59:04 +0200
commit89d00fcbc75e128cba516009db100daec4b794a9 (patch)
tree9e98d87d9fef51a06d830ef2dd659cdc6fed2fb4 /lib/_ak_config
parent756db3cbdb91d2cb4773dd16aec3b54d1a52c462 (diff)
downloadarching-kaos-tools-89d00fcbc75e128cba516009db100daec4b794a9.tar.gz
arching-kaos-tools-89d00fcbc75e128cba516009db100daec4b794a9.tar.bz2
arching-kaos-tools-89d00fcbc75e128cba516009db100daec4b794a9.zip
Diffstat (limited to 'lib/_ak_config')
-rwxr-xr-xlib/_ak_config7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/_ak_config b/lib/_ak_config
index 0a4d55c..d8705d8 100755
--- a/lib/_ak_config
+++ b/lib/_ak_config
@@ -19,7 +19,7 @@
###
source $AK_LIBDIR/_ak_node
-_ak_config_show(){
+function _ak_config_show(){
# We will be using our public key also to put it in the block later
KEY="self.pub"
ak-gpg --export-key-self-to-file
@@ -27,7 +27,6 @@ _ak_config_show(){
GPG_PUB_KEY=$(_ak_ipfs_add $KEY)
rm $KEY
profile="$(ak-profile -l)"
-
echo '
{
"profile":'$profile',
@@ -38,7 +37,7 @@ _ak_config_show(){
}'| jq;
}
-_ak_config_publish(){
+function _ak_config_publish(){
_ak_config_show | jq -c -M > tmpfile
ipfs_hash="$(_ak_ipfs_add tmpfile)"
_ak_ipfs_config_publish $ipfs_hash
@@ -51,7 +50,7 @@ _ak_config_publish(){
rm tmpfile
}
-_ak_config_published(){
+function _ak_config_published(){
_ak_ipfs_cat $(_ak_node_info_ipfs_hash) | jq
}