From e31aa7b1a84b28181a69dcf0698782bffa018f0b Mon Sep 17 00:00:00 2001 From: qo-op Date: Fri, 25 Dec 2020 20:27:04 +0100 Subject: [PATCH] =?UTF-8?q?r=C3=A9glage=20swam=20control?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zen/gchange_IPFS_swarm.sh | 4 +++- zen/ipfs_SWARM_refresh.sh | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/zen/gchange_IPFS_swarm.sh b/zen/gchange_IPFS_swarm.sh index de67ba7..ef98dca 100755 --- a/zen/gchange_IPFS_swarm.sh +++ b/zen/gchange_IPFS_swarm.sh @@ -72,7 +72,9 @@ do done -cat ~/.zen/A_my_swarm.txt +# UNIQ file +cat ~/.zen/A_my_swarm.txt | uniq > /tmp/A_my_swarm.txt +cp -f /tmp/A_my_swarm.txt ~/.zen/A_my_swarm.txt echo "#################################################### I have $friend_of_mine_count friends amoung $liking_me_count liking me people diff --git a/zen/ipfs_SWARM_refresh.sh b/zen/ipfs_SWARM_refresh.sh index 381705d..0cdaf4a 100755 --- a/zen/ipfs_SWARM_refresh.sh +++ b/zen/ipfs_SWARM_refresh.sh @@ -40,6 +40,7 @@ count=1 for peerline in $(ipfs swarm peers && cat ~/.zen/A_swarm_map.txt); do ipfsnodeid=$(echo "$peerline" | awk -F '/' '{print $8}') + [[ "$ipfsnodeid" == "" ]] && continue whoisg1=$(~/.zen/astrXbian/zen/tools/ipfs_to_g1.py $ipfsnodeid) ip=$(echo "$peerline" | awk -F '/' '{print $3}')