From d5c2e07450178ba9f53d2a648014bc218191c165 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 25 Mar 2023 15:03:14 +0100 Subject: [PATCH] fixing --- ASTROBOT/VOEUX.refresh.sh | 6 +++--- setup.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ASTROBOT/VOEUX.refresh.sh b/ASTROBOT/VOEUX.refresh.sh index 4bfa61f3..e2f6cc05 100755 --- a/ASTROBOT/VOEUX.refresh.sh +++ b/ASTROBOT/VOEUX.refresh.sh @@ -149,7 +149,7 @@ do [[ $WISHNS == "null" ]] && echo "NO WISHNS in ~/.zen/tmp/${APLAYER}.${WISHNAME}.json" && echo && ((floop++)) && continue echo ">>> ${myIPFS}${WISHNS}" - echo "${APLAYER}: { + echo "${floop}: { alpha: Math.random() * 2 * Math.PI, delta: Math.random() * 2 * Math.PI, name: '"${WISNAME} ${APLAYER}"', @@ -213,7 +213,7 @@ do ### ADD TO IPFS echo "++WISH PUBLISHING++ ipfs add -qHwr ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/*" - du -h ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/ + ls ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/ WISHFLUX=$(ipfs add -qHwr ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/* | tail -n 1) # ADDING JSONS TO IPFS ipfs name publish -k $VOEUKEY /ipfs/$WISHFLUX # PUBLISH $VOEUKEY @@ -222,7 +222,7 @@ do echo ">>> $VOEUKEY : Ŋ1 FLUX $(myIpfsGw)${VOEUNS}" echo "~/.zen/game/players/${PLAYER}/G1${WISHNAME}/${G1PUB}" - cp -f ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/* ~/.zen/game/players/${PLAYER}/G1${WISHNAME}/${G1PUB}/ + cp -f ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/* ~/.zen/game/players/${PLAYER}/G1${WISHNAME}/${G1PUB}/ 2>/dev/null done < ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${PLAYER}.g1wishes.txt diff --git a/setup.sh b/setup.sh index 2963c772..d5b39187 100755 --- a/setup.sh +++ b/setup.sh @@ -99,7 +99,7 @@ sudo systemctl restart astroport ACTUAL=$(cat /etc/resolv.conf | grep -w nameserver | head -n 1) -if [[ ! $(echo $ACTUAL | grep "1.1.1.1") ]] ; then +if [[ $(echo $ACTUAL | grep "1.1.1.1") == "" ]] ; then ######################################################################## echo "ADDING nameserver 1.1.1.1 TO /etc/resolv.conf TO BYPASS LAN COUNTRY RESTRICTIONS" # Avoid provider restrictions ########################################################################