diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-07-24 18:29:57 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-07-24 18:29:57 +0300 |
commit | 00f3e970c39adb28e24a6ac0cdbfffc8bac8ac67 (patch) | |
tree | 986ffc6255442aa8e11fa66e636ad06a79ed2cd7 /lib/_ak_ipfs | |
parent | ec93522a295b9ee74f7fa8cbbd7752f2c1ef6ce6 (diff) | |
download | arching-kaos-tools-00f3e970c39adb28e24a6ac0cdbfffc8bac8ac67.tar.gz arching-kaos-tools-00f3e970c39adb28e24a6ac0cdbfffc8bac8ac67.tar.bz2 arching-kaos-tools-00f3e970c39adb28e24a6ac0cdbfffc8bac8ac67.zip |
fixes
Diffstat (limited to 'lib/_ak_ipfs')
-rwxr-xr-x | lib/_ak_ipfs | 7 |
1 files changed, 7 insertions, 0 deletions
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 } |