diff --git a/zen/gchange_IPFS_swarm.sh b/zen/gchange_IPFS_swarm.sh index 7c35971..03e54c5 100755 --- a/zen/gchange_IPFS_swarm.sh +++ b/zen/gchange_IPFS_swarm.sh @@ -37,7 +37,7 @@ IPFSNODEID=$(ipfs id -f='\n') # Force Strict #swarm0 !!? # ipfs bootstrap rm --all - +echo "" > /tmp/A_liking_me_NO_ipfstryme.txt liking_me_count=0 friend_of_mine_count=0 ######################################################################## @@ -57,19 +57,20 @@ do ipfs bootstrap add $adresse; ipfsadd=$((ipfsadd+1)) done; - [[ $ipfsadd == 0 ]] && echo "My friend did not sent ipfstryme message..." && echo "$liking_me" >> /tmp/A_liking_me_NO_ipfstryme.txt # && ./jaklis.py send -d $liking_me -t "Gchange IPFS" -m "Rejoins moi sur https://qo-op.com" + [[ $ipfsadd == 0 ]] && echo "My friend did not sent ipfstryme message..." && echo "$liking_me" >> /tmp/A_liking_me_NO_ipfstryme.txt # 4. liking_me IS NOT a friend_of_mine!! [[ $friend_of_mine == null ]] && echo "I am NOT LIKING $liking_me"; liking_me_count=$((liking_me_count+1)) done -cd - + echo "I have $friend_of_mine_count friends amoung $liking_me_count liking me people __________________________________________ HERE IS MY #SWARM0" ipfs swarm peers -echo "You could send a message" -cat /tmp/A_liking_me_NO_ipfstryme.txt | uniq > /tmp/A_UNIQ_liking_me_NO_ipfstryme.txt -cp /tmp/A_UNIQ_liking_me_NO_ipfstryme.txt /tmp/A_liking_me_NO_ipfstryme.txt -cat /tmp/A_liking_me_NO_ipfstryme.txt +for line in $(cat /tmp/A_liking_me_NO_ipfstryme.txt | uniq); do + echo "./jaklis.py send -d $liking_me -t 'Astroport Gchange IPFS' -m 'Rejoins mon #Swarm0 \n https://qo-op.com'" +done + +cd -