diff --git a/zen/gchange_IPFS_swarm.sh b/zen/gchange_IPFS_swarm.sh index 03e54c5..8c383ff 100755 --- a/zen/gchange_IPFS_swarm.sh +++ b/zen/gchange_IPFS_swarm.sh @@ -57,20 +57,22 @@ 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 + [[ $friend_of_mine != null && $ipfsadd == 0 ]] && echo "No 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 -echo "I have $friend_of_mine_count friends amoung $liking_me_count liking me people +echo "#################################################### +I have $friend_of_mine_count friends amoung $liking_me_count liking me people __________________________________________ -HERE IS MY #SWARM0" +My actual #SWARM0" ipfs swarm peers - +echo "__________________________________________" +echo 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'" + echo "./jaklis.py send -d $liking_me -t 'Astroport' -m 'Rejoins mon #Swarm0 sur https://qo-op.com'" done cd -