Browse Source

[[ "$sping" == "OK" ]] maybe too restrictive

pull/38/head
fred 2 months ago
parent
commit
9ad325e3d5
  1. 2
      zen/gchange_IPFS_swarm.sh

2
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

Loading…
Cancel
Save