replace TAB with " " for testing code with copy/paste on console.

This commit is contained in:
qo-op 2021-06-04 01:44:36 +02:00
parent 12f9d1c8bd
commit fba22ba2e3
6 changed files with 349 additions and 349 deletions

View File

@ -145,7 +145,7 @@ do
# REFRESH & PUBLISH stars friends map # REFRESH & PUBLISH stars friends map
stars="$(cat /tmp/Gstars.json | jq -r '.yours.level')" 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) [[ "$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 *****" echo "$stars" > ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/$liking_me/stars.level && echo "***** $stars STARS *****"
# SEND jaklis message if tryme.addr is different from last one # SEND jaklis message if tryme.addr is different from last one

View File

@ -26,8 +26,8 @@ echo $(date)
######################################################################## ########################################################################
# Let's look for Friends and "IPFS swarm connect" with them # Let's look for Friends and "IPFS swarm connect" with them
######################################################################## ########################################################################
# 1. Get Gchange "liking_me" people list # 1. Get Gchange "liking_me" people list (made by gchange_INIT.sh)
~/.zen/astrXbian/zen/jaklis/jaklis.py -k ~/.zen/secret.dunikey -n "https://data.gchange.fr" stars | jq -r '.likes[].issuer' > /tmp/liking_me [[ ! -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); for liking_me in $(cat /tmp/liking_me);
do do