aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-ipfs-cat
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-06-14 20:50:09 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-06-14 20:50:09 +0300
commite667f1e583dda2b9d5a13cd520fdcd0acb627519 (patch)
tree290c959b32f7fff68ba6a6bfe1405f59c74a438c /bin/ak-ipfs-cat
parent59ac2791e57066c3fd75e34f6dd037583eba71b9 (diff)
downloadarching-kaos-tools-e667f1e583dda2b9d5a13cd520fdcd0acb627519.tar.gz
arching-kaos-tools-e667f1e583dda2b9d5a13cd520fdcd0acb627519.tar.bz2
arching-kaos-tools-e667f1e583dda2b9d5a13cd520fdcd0acb627519.zip
Making sure we get the return codes and display appropriate messages wherever needed
Diffstat (limited to 'bin/ak-ipfs-cat')
-rwxr-xr-xbin/ak-ipfs-cat4
1 files changed, 4 insertions, 0 deletions
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