bugs killing & enhancement
parent
1ba3b338f5
commit
3699d5bfff
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue