separate loops

This commit is contained in:
qo-op 2021-06-04 05:12:33 +02:00
parent acff6682bc
commit e2da6ddc1e
1 changed files with 51 additions and 51 deletions

View File

@ -43,7 +43,11 @@ do
## ZOMBIE NODE sends more that 300 ipfstryme ?
[[ $(cat /tmp/ipfstryme.$liking_me | sort | uniq | wc -l) -gt 300 ]] && echo "THIS NODE IS A ZOMBIE..." && rm -f /tmp/ipfstryme.$liking_me && continue
for peerline in $(cat /tmp/ipfstryme.$liking_me);
echo "__________________________________________"
done
for peerline in $(cat /tmp/ipfstryme.$liking_me | sort | uniq);
do
echo "======================================================"
# GET $ipfsnodeid FROM $peerline
@ -94,10 +98,6 @@ do
fi
done;
echo "__________________________________________"
done
# UNIQ file
cat ~/.zen/A_my_swarm.txt | sort | uniq > /tmp/A_my_swarm.txt
cp -f /tmp/A_my_swarm.txt ~/.zen/A_my_swarm.txt