aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-ipfs-name-publish
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-ipfs-name-publish')
-rwxr-xr-xbin/ak-ipfs-name-publish6
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