diff options
Diffstat (limited to 'bin/ak-ipfs-files-stat')
-rwxr-xr-x | bin/ak-ipfs-files-stat | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/ak-ipfs-files-stat b/bin/ak-ipfs-files-stat index a378ed8..5e3e537 100755 --- a/bin/ak-ipfs-files-stat +++ b/bin/ak-ipfs-files-stat @@ -1,3 +1,8 @@ #!/bin/bash +PROGRAM="$(basename $0)" ipfs files stat "$1" - +if [ "$?" != "0" ] +then + ak-logthis "<$PROGRAM>" "[ERROR]" "Failed to get file's stats $1" + exit 1 +fi |