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