aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-ipfs-key-gen
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-ipfs-key-gen')
-rwxr-xr-xbin/ak-ipfs-key-gen6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ak-ipfs-key-gen b/bin/ak-ipfs-key-gen
index 29a30f9..e30ce8d 100755
--- a/bin/ak-ipfs-key-gen
+++ b/bin/ak-ipfs-key-gen
@@ -1,2 +1,8 @@
#!/bin/bash
+PROGRAM="$(basename $0)"
ipfs key gen "$1"
+if [ "$?" != "0" ]
+then
+ ak-logthis "<$PROGRAM>" "[ERROR]" "Failed to generate key $1"
+ exit 1
+fi