diff options
Diffstat (limited to 'bin/ak-ipfs-name-publish')
-rwxr-xr-x | bin/ak-ipfs-name-publish | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ak-ipfs-name-publish b/bin/ak-ipfs-name-publish index d1e10cf..d1a938c 100755 --- a/bin/ak-ipfs-name-publish +++ b/bin/ak-ipfs-name-publish @@ -1,3 +1,9 @@ #!/bin/bash +PROGRAM="$(basename $0)" ipfs name publish "$1" "$2" +if [ "$?" != "0" ] +then + ak-logthis "<$PROGRAM>" "[ERROR]" "Failed to get $1" + exit 1 +fi |