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