NO CURRENT ? PLAYER = .current

This commit is contained in:
fred 2024-03-08 14:43:30 +01:00
parent c885afb076
commit c227bfd8a8
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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"