From feb828c6ca4af1708c4c204a86150f37ca3eaa0e Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 20 Aug 2023 20:53:09 +0300 Subject: Fixed bug when ak-config key was not initially created --- bin/ak-config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/ak-config b/bin/ak-config index bc55b8e..889c42b 100755 --- a/bin/ak-config +++ b/bin/ak-config @@ -28,6 +28,11 @@ show(){ publish(){ show | jq -M > tmpfile + ipfs key list | grep ak-config 2> /dev/null 1>&2 + if [ "$?" -ne 0 ] + then + ipfs key gen ak-config + fi ak-ipfs-name-publish --key=ak-config /ipfs/$(ak-ipfs-add tmpfile) if [ "$?" != 0 ] then -- cgit v1.2.3