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