From daaaf455d702ca26be190001c5510f4259b87834 Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 26 Feb 2024 04:25:03 +0100 Subject: [PATCH] first PLAYER fix --- RUNTIME/VISA.new.sh | 6 ++++++ templates/P4N/index.html | 19 ++++++++++--------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/RUNTIME/VISA.new.sh b/RUNTIME/VISA.new.sh index eaaa7e22..97727de6 100755 --- a/RUNTIME/VISA.new.sh +++ b/RUNTIME/VISA.new.sh @@ -610,6 +610,12 @@ $MY_PATH/../tools/mailjet.sh "${PLAYER}" ~/.zen/tmp/${MOATS}/AstroID.html "Astr rm -Rf ~/.zen/tmp/${MOATS} ) & +## CHECK .current +[[ ! -d $(readlink ~/.zen/game/players/.current) ]] \ +&& rm ~/.zen/game/players/.current 2>/dev/null \ +&& ln -s ~/.zen/game/players/${PLAYER} ~/.zen/game/players/.current + + echo $PSEUDO > ~/.zen/tmp/PSEUDO ## Return data to command.sh # KEEP IT echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" ################################################ LAST LINE REPORT VALUES TO CALLING SCRIPT | tail -n 1 diff --git a/templates/P4N/index.html b/templates/P4N/index.html index aed01516..3b5b3706 100644 --- a/templates/P4N/index.html +++ b/templates/P4N/index.html @@ -110,14 +110,15 @@