From 00f3e970c39adb28e24a6ac0cdbfffc8bac8ac67 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 24 Jul 2024 18:29:57 +0300 Subject: fixes --- lib/_ak_ipfs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/_ak_ipfs') diff --git a/lib/_ak_ipfs b/lib/_ak_ipfs index 2adb8ce..db0019c 100755 --- a/lib/_ak_ipfs +++ b/lib/_ak_ipfs @@ -9,6 +9,11 @@ fi _ak_ipfs(){ export IPFS_PATH=$AK_IPFS_REPO; ipfs $* + if [ $? -ne 0 ] + then + _ak_log_error "Some error occured when running: ipfs $*" + exit 1 + fi } _ak_ipfs_daemon(){ @@ -41,6 +46,7 @@ _ak_ipfs_scanner(){ _ak_ipfs_get_peers if [ $? -ne 0 ] then + _ak_log_error "Failed to get IPFS peers" exit 1 fi fi @@ -351,6 +357,7 @@ _ak_ipns_resolve(){ echo -n $rsld | sed -e 's/\/ipfs\///' _ak_log_info "Resolved $1 to $rsld" else + _ak_log_error "No argument given to resolve" exit 1 fi } -- cgit v1.2.3