From c533e1c8a6da09754ee4b9482d6b725f1cc115a6 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 10 Feb 2024 20:58:40 +0100 Subject: [PATCH] EXTEND PATH .local/bin --- RUNTIME/NODE.refresh.sh | 4 ++++ RUNTIME/PLAYER.refresh.sh | 1 + install.sh | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RUNTIME/NODE.refresh.sh b/RUNTIME/NODE.refresh.sh index 436ccbc6..6cbfd616 100755 --- a/RUNTIME/NODE.refresh.sh +++ b/RUNTIME/NODE.refresh.sh @@ -51,8 +51,12 @@ if [[ -d ~/.zen/tmp/${IPFSNODEID} ]]; then cp -Rf ~/.zen/game/players/${PLAYER}/FRIENDS/* ~/.zen/tmp/${IPFSNODEID}/GCHANGE/${PLAYER}/FRIENDS/ 2>/dev/null done + ## INFORM GPS LOCATION cp ~/.zen/GPS ~/.zen/tmp/${IPFSNODEID}/ + [[ ! -s ~/.zen/tmp/${IPFSNODEID}/GPS ]] \ + && cp ~/.zen/game/players/.current/GPS.json ~/.zen/tmp/${IPFSNODEID}/ + ## REFRESH TIMESTAMPING echo "${MOATS}" > ~/.zen/tmp/${IPFSNODEID}/_MySwarm.moats echo "$(date -u)" > ~/.zen/tmp/${IPFSNODEID}/_MySwarm.staom diff --git a/RUNTIME/PLAYER.refresh.sh b/RUNTIME/PLAYER.refresh.sh index 5fa20bce..a9411fbc 100755 --- a/RUNTIME/PLAYER.refresh.sh +++ b/RUNTIME/PLAYER.refresh.sh @@ -185,6 +185,7 @@ for PLAYER in ${PLAYERONE[@]}; do ## STORE IN PLAYER CACHE echo "_${LAT}_${LON}" > ~/.zen/game/players/${PLAYER}/.umap + cp ~/.zen/tmp/${MOATS}/GPS.json ~/.zen/game/players/${PLAYER}/ ########### ASTROPORT is not IPFSNODEID => EJECT TW ## MOVED PLAYER (KEY IS KEPT ON LAST CONNECTED ASTROPORT) diff --git a/install.sh b/install.sh index 2507c782..7927e1d6 100755 --- a/install.sh +++ b/install.sh @@ -184,8 +184,8 @@ do echo "$line" >> ~/.bashrc done < ~/.zen/Astroport.ONE/ASCI_ASTROPORT.txt +## EXTEND PATH echo 'export PATH=$PATH:$HOME/.local/bin -CHROME_EXECUTABLE=/usr/bin/chromium ' >> ~/.bashrc && source ~/.bashrc echo "<<< UPDATED>>> PATH=$PATH"