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-key-list-full | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin/ak-ipfs-key-list-full') diff --git a/bin/ak-ipfs-key-list-full b/bin/ak-ipfs-key-list-full index f777225..1c19c00 100755 --- a/bin/ak-ipfs-key-list-full +++ b/bin/ak-ipfs-key-list-full @@ -1,2 +1,8 @@ #!/bin/bash +PROGRAM="$(basename $0)" ipfs key list -l +if [ "$?" != "0" ] +then + ak-logthis "<$PROGRAM>" "[ERROR]" "Failed to get key list" + exit 1 +fi -- cgit v1.2.3