diff options
-rwxr-xr-x | bin/ak-config | 5 |
1 files changed, 5 insertions, 0 deletions
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 |