aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_network
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-12 15:47:52 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-12 15:47:52 +0200
commitc2290b80d8925e54835b20fbc7cebf5593d16959 (patch)
tree076664b817c75b523a403044a02e6925ddd48f74 /lib/_ak_network
parent91e5a483a4dfbe38577d700359b0588c9175c31b (diff)
downloadarching-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
Diffstat (limited to 'lib/_ak_network')
-rwxr-xr-xlib/_ak_network14
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(){