From 9ad325e3d519d1f1a3adae127f9b02d0080b72ae Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 23 Sep 2021 03:30:14 +0200 Subject: [PATCH] [[ "$sping" == "OK" ]] maybe too restrictive --- zen/gchange_IPFS_swarm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zen/gchange_IPFS_swarm.sh b/zen/gchange_IPFS_swarm.sh index f9cf1f6..537cfcf 100755 --- a/zen/gchange_IPFS_swarm.sh +++ b/zen/gchange_IPFS_swarm.sh @@ -77,7 +77,7 @@ do ping -c 1 -W 1 $stationip 2>&1>/dev/null && sping="OK" || sping="NOK" echo "## $sping PING $stationip STATION $ipfsnodeid" [[ $ipfsnodeid == "" ]] && break - [[ ! $(cat /tmp/ipfstryme.clean | grep $ipfsnodeid) ]] && [[ "$sping" == "OK" ]] && echo $line >> /tmp/ipfstryme.clean + [[ ! $(cat /tmp/ipfstryme.clean | grep $ipfsnodeid) ]] && echo $line >> /tmp/ipfstryme.clean done cat /tmp/ipfstryme.clean | sort | uniq > /tmp/ipfstryme.$liking_me