From e667f1e583dda2b9d5a13cd520fdcd0acb627519 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 14 Jun 2023 20:50:09 +0300 Subject: Making sure we get the return codes and display appropriate messages wherever needed --- bin/ak-ipfs-cat | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/ak-ipfs-cat') diff --git a/bin/ak-ipfs-cat b/bin/ak-ipfs-cat index e1e6491..b9bd7ec 100755 --- a/bin/ak-ipfs-cat +++ b/bin/ak-ipfs-cat @@ -1,3 +1,7 @@ #!/bin/bash ipfs --timeout=10s cat $1 +if [ "$?" -ne "0" ] +then + exit 1 +fi -- cgit v1.2.3