From c2290b80d8925e54835b20fbc7cebf5593d16959 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Thu, 12 Dec 2024 15:47:52 +0200 Subject: Output peers only if the relative files are found --- lib/_ak_network | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'lib/_ak_network') 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(){ -- cgit v1.2.3