From c227bfd8a8ef7c1decb988d7cb41a8024f4a198b Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 8 Mar 2024 14:43:30 +0100 Subject: [PATCH] NO CURRENT ? PLAYER = .current --- RUNTIME/NODE.refresh.sh | 4 ++-- RUNTIME/VISA.new.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/RUNTIME/NODE.refresh.sh b/RUNTIME/NODE.refresh.sh index 8ba33bd3..dd6613bc 100755 --- a/RUNTIME/NODE.refresh.sh +++ b/RUNTIME/NODE.refresh.sh @@ -55,8 +55,8 @@ if [[ -d ~/.zen/tmp/${IPFSNODEID} ]]; then ## INFORM GPS LOCATION [[ -s ~/.zen/game/players/.current/GPS.json ]] \ && cp ~/.zen/game/players/.current/GPS.json ~/.zen/tmp/${IPFSNODEID}/ \ - && LAT=$(cat ~/.zen/tmp/${IPFSNODEID}/GPS.json | jq -r .[].lat) \ - && LON=$(cat ~/.zen/tmp/${IPFSNODEID}/GPS.json | jq -r .[].lon) \ + && LAT=$(cat ~/.zen/tmp/${IPFSNODEID}/GPS.json | jq -r .lat) \ + && LON=$(cat ~/.zen/tmp/${IPFSNODEID}/GPS.json | jq -r .lon) \ && echo "LAT=${LAT}; LON=${LON}" > ~/.zen/GPS ## REFRESH TIMESTAMPING diff --git a/RUNTIME/VISA.new.sh b/RUNTIME/VISA.new.sh index 01df4a1b..d50cb209 100755 --- a/RUNTIME/VISA.new.sh +++ b/RUNTIME/VISA.new.sh @@ -513,9 +513,9 @@ echo "--- PLAYER : ${PLAYER} - DATA PROTOCOL LAYER LOADED"; [[ $XDG_SESSION_TYPE == 'x11' || $XDG_SESSION_TYPE == 'wayland' ]] && xdg-open "${myIPFS}/ipns/${ASTRONAUTENS}" && espeak "YOUR PASS IS $PASS" -################# PREPARE DOCKERIZATION -#~ [[ -l ~/.zen/game/players/.current ]] \ -#~ && ln -s ~/.zen/game/players/${PLAYER} ~/.zen/game/players/.current +####### NO CURRENT ? PLAYER = .current +[[ ! -l ~/.zen/game/players/.current ]] \ + && ln -s ~/.zen/game/players/${PLAYER} ~/.zen/game/players/.current . "${MY_PATH}/../tools/my.sh"