From 56d9355e53d45f9659be308032cd9ddf6cc84653 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 4 Sep 2021 14:46:10 +0200 Subject: [PATCH] NOT FRIEND ## TODO : remove "ipfs pin" in "~/.zen/PIN/" --- zen/gchange_INIT.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zen/gchange_INIT.sh b/zen/gchange_INIT.sh index faa29a7..c44773f 100755 --- a/zen/gchange_INIT.sh +++ b/zen/gchange_INIT.sh @@ -195,7 +195,12 @@ do # REFRESH & PUBLISH stars friends map stars="$(cat /tmp/Gstars.json | jq -r '.yours.level')" - [[ "$stars" == "null" || "$stars" == "" ]] && rm -Rf ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/$liking_me && echo "$friend_of_mine NO STAR !! Removing $liking_me" && continue ## REMOVE NO GOOD FRIENDS (no star) + if [[ "$stars" == "null" || "$stars" == "" ]]; then + rm -Rf ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/$liking_me + echo "$friend_of_mine NO STAR !! Removing $liking_me" + ## TODO : remove "ipfs pin" in "~/.zen/PIN/" + continue ## REMOVE NO GOOD FRIENDS (no star) + fi 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 *****"