From 58b888574923c46c3854090c5cd5d8106e39d46a Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 30 Jul 2023 20:08:57 +0300 Subject: Added checks to detect success and failure of underlying commands being run --- bin/ak-ipfs-cat | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin/ak-ipfs-cat') diff --git a/bin/ak-ipfs-cat b/bin/ak-ipfs-cat index b9bd7ec..d2415e4 100755 --- a/bin/ak-ipfs-cat +++ b/bin/ak-ipfs-cat @@ -1,7 +1,9 @@ #!/bin/bash +PROGRAM="$(basename $0)" ipfs --timeout=10s cat $1 if [ "$?" -ne "0" ] then + ak-logthis "<$PROGRAM>" "[ERROR]" "Failed to cat $1" exit 1 fi -- cgit v1.2.3