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

This commit is contained in:
fred 2021-09-23 03:30:14 +02:00
parent 8d92aa42b6
commit 9ad325e3d5
1 changed files with 1 additions and 1 deletions

View File

@ -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