replace TAB with " " for testing code with copy/paste on console.
This commit is contained in:
parent
12f9d1c8bd
commit
fba22ba2e3
|
@ -145,7 +145,7 @@ do
|
|||
# REFRESH & PUBLISH stars friends map
|
||||
stars="$(cat /tmp/Gstars.json | jq -r '.yours.level')"
|
||||
[[ "$stars" == "null" ]] && rm -Rf ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/$liking_me && echo "$friend_of_mine NO STAR !! Removing $liking_me" && continue ## REMOVE NO GOOD FRIENDS (no star)
|
||||
cp /tmp/Gstars.json ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/$liking_me/
|
||||
cp /tmp/Gstars.json ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/$liking_me/ && rm -f /tmp/Gstars.json
|
||||
echo "$stars" > ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/$liking_me/stars.level && echo "***** $stars STARS *****"
|
||||
|
||||
# SEND jaklis message if tryme.addr is different from last one
|
||||
|
|
|
@ -26,8 +26,8 @@ echo $(date)
|
|||
########################################################################
|
||||
# Let's look for Friends and "IPFS swarm connect" with them
|
||||
########################################################################
|
||||
# 1. Get Gchange "liking_me" people list
|
||||
~/.zen/astrXbian/zen/jaklis/jaklis.py -k ~/.zen/secret.dunikey -n "https://data.gchange.fr" stars | jq -r '.likes[].issuer' > /tmp/liking_me
|
||||
# 1. Get Gchange "liking_me" people list (made by gchange_INIT.sh)
|
||||
[[ ! -f /tmp/liking_me ]] && ~/.zen/astrXbian/zen/jaklis/jaklis.py -k ~/.zen/secret.dunikey -n "https://data.gchange.fr" stars | jq -r '.likes[].issuer' > /tmp/liking_me
|
||||
|
||||
for liking_me in $(cat /tmp/liking_me);
|
||||
do
|
||||
|
|
Loading…
Reference in New Issue