diff --git a/_12345.sh b/_12345.sh index 77aa5d6a..e3fbba2e 100755 --- a/_12345.sh +++ b/_12345.sh @@ -77,7 +77,7 @@ while true; do ls ~/.zen/tmp/swarm BSIZE=$(du -b ~/.zen/tmp/swarm | tail -n 1 | cut -f 1) - ## SIZE MODIFIED + ## SIZE MODIFIED => PUBLISH MySwarm_$IPFSNODEID [[ $BSIZE != $(cat ~/.zen/tmp/swarm/.bsize) ]] \ && echo $BSIZE > ~/.zen/tmp/swarm/.bsize \ && SWARMH=$(ipfs add -rwq ~/.zen/tmp/swarm/* | tail -n 1 ) \ @@ -85,7 +85,7 @@ while true; do ############# PUBLISH IPFSNODEID BALISE - # Clean Empty + # Clean Empty Directory (inode dependancy BUG ??) du -b ~/.zen/tmp/${IPFSNODEID} > /tmp/du while read branch; do [[ $branch =~ "4096" ]] && rmdir $(echo $branch | cut -f 2 -d ' '); done < /tmp/du diff --git a/tools/Connect_PLAYER_To_Gchange.sh b/tools/Connect_PLAYER_To_Gchange.sh index c8686b56..ebcf437f 100755 --- a/tools/Connect_PLAYER_To_Gchange.sh +++ b/tools/Connect_PLAYER_To_Gchange.sh @@ -84,7 +84,7 @@ echo "Getting received stars" -k ~/.zen/game/players/${PLAYER}/secret.dunikey \ -n "https://data.gchange.fr" stars > ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/received_stars.json -cat ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/received_stars.json | jq -r '.likes[].issuer' | uniq > ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/liking_me +cat ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/received_stars.json | jq -r '.likes[].issuer' | sort | uniq > ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/liking_me echo "cat ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/received_stars.json | jq -r" for liking_me in $(cat ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/liking_me | sort | uniq); diff --git a/tools/new_file_in_astroport.sh b/tools/new_file_in_astroport.sh index ee26cec6..689c768a 100755 --- a/tools/new_file_in_astroport.sh +++ b/tools/new_file_in_astroport.sh @@ -98,7 +98,7 @@ PLAYER=$(cat ~/.zen/game/players/.current/.player 2>/dev/null); # NOT CURRENT PLAYER (CHECK FOR TW & KEY [[ $G1PUB != $(cat ~/.zen/game/players/.current/.g1pub 2>/dev/null) ]] \ -&& [[ $(ipfs key list -l | grep -v $G1PUB) ]] \ +&& [[ $(ipfs key list -l | grep -w $G1PUB) ]] \ && echo "(ᵔ◡◡ᵔ) INVITATION $G1PUB" \ && ASTRONS=$($MY_PATH/tools/g1_to_ipfs.py "$G1PUB") \ && $MY_PATH/tools/TW.cache.sh $ASTRONS $MOATS \