diff options
Diffstat (limited to 'bin/ak-ipfs-key-gen')
-rwxr-xr-x | bin/ak-ipfs-key-gen | 6 |
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 |