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