diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-12-12 15:47:52 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-12-12 15:47:52 +0200 |
commit | c2290b80d8925e54835b20fbc7cebf5593d16959 (patch) | |
tree | 076664b817c75b523a403044a02e6925ddd48f74 | |
parent | 91e5a483a4dfbe38577d700359b0588c9175c31b (diff) | |
download | arching-kaos-tools-c2290b80d8925e54835b20fbc7cebf5593d16959.tar.gz arching-kaos-tools-c2290b80d8925e54835b20fbc7cebf5593d16959.tar.bz2 arching-kaos-tools-c2290b80d8925e54835b20fbc7cebf5593d16959.zip |
Output peers only if the relative files are found
-rwxr-xr-x | lib/_ak_network | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/_ak_network b/lib/_ak_network index b3530b3..4ca58f8 100755 --- a/lib/_ak_network +++ b/lib/_ak_network @@ -378,11 +378,21 @@ _ak_network_show_peers_stellar(){ } _ak_network_show_peers_cjdns(){ - cat $AK_ZPEERSFILE.hyperboria | jq + if [ -f $AK_ZPEERSFILE.hyperboria ] + then + cat $AK_ZPEERSFILE.hyperboria | jq + else + _ak_log_debug "No hyperboria peers found" + fi } _ak_network_show_peers_yggdrasil(){ - cat $AK_ZPEERSFILE.yggdrasil | jq + if [ -f $AK_ZPEERSFILE.yggdrasil ] + then + cat $AK_ZPEERSFILE.yggdrasil | jq + else + _ak_log_debug "No yggdrasil peers found" + fi } _ak_network_show_peers_ipfs(){ |