diff --git a/zen/gchange_INIT.sh b/zen/gchange_INIT.sh index 9358523..3c6a7b1 100755 --- a/zen/gchange_INIT.sh +++ b/zen/gchange_INIT.sh @@ -154,11 +154,11 @@ ipfsnodeid=${IamINBOOTSTRAP##*/} ################## SEND ipfstryme MESSAGES to FRIENDS rm -f /tmp/friend_of_mine ## Getting Gchange liking_me list -~/.zen/astrXbian/zen/tools/timeout.sh -t 20 ~/.zen/astrXbian/zen/jaklis/jaklis.py -k ~/.zen/secret.dunikey -n "https://data.gchange.fr" stars | jq -r '.likes[].issuer' > /tmp/liking_me +~/.zen/astrXbian/zen/tools/timeout.sh -t 20 ~/.zen/astrXbian/zen/jaklis/jaklis.py -k ~/.zen/secret.dunikey -n "https://data.gchange.fr" stars | jq -r '.likes[].issuer' > ~/.zen/ipfs/.$IPFSNODEID/FRIENDS/liking_me ## Adding random bootstrap to liking_me list -~/.zen/astrXbian/zen/tools/ipfs_to_g1.py $(cat ~/.zen/astrXbian/A_boostrap_nodes.txt | grep -Ev "#" | rev | cut -d '/' -f 1 | rev | shuf | head -n 1) >> /tmp/liking_me +~/.zen/astrXbian/zen/tools/ipfs_to_g1.py $(cat ~/.zen/astrXbian/A_boostrap_nodes.txt | grep -Ev "#" | rev | cut -d '/' -f 1 | rev | shuf | head -n 1) >> ~/.zen/ipfs/.$IPFSNODEID/FRIENDS/liking_me -for liking_me in $(cat /tmp/liking_me | sort | uniq); +for liking_me in $(cat ~/.zen/ipfs/.$IPFSNODEID/FRIENDS/liking_me | sort | uniq); do [[ "$liking_me" == "" ]] && continue ## Protect from empty line !! ##### BOOTSTRAP AUTO LIKE BACK (NOT liking Myself)