From d32b9938abd2a6dcbee271f99ec764352a084e4d Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 17 Mar 2024 13:55:02 +0100 Subject: [PATCH] empty AstroID --- RUNTIME/PLAYER.refresh.sh | 2 +- RUNTIME/PLAYER.unplug.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RUNTIME/PLAYER.refresh.sh b/RUNTIME/PLAYER.refresh.sh index ffa7d27a..9218c891 100755 --- a/RUNTIME/PLAYER.refresh.sh +++ b/RUNTIME/PLAYER.refresh.sh @@ -160,7 +160,7 @@ for PLAYER in ${PLAYERONE[@]}; do tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \ --output ~/.zen/tmp/${MOATS} \ --render '.' 'AstroID.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'AstroID' ## AstroID Tiddler - + [[ $(cat ~/.zen/tmp/${MOATS}/AstroID.json) == "[]" ]] && rm ~/.zen/tmp/${MOATS}/AstroID.json ########################################## used by Astroport :: Lasertag :: TW plugin ## ## CHECK "$:/config/NewTiddler/Tags" tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \ diff --git a/RUNTIME/PLAYER.unplug.sh b/RUNTIME/PLAYER.unplug.sh index 11947a18..c26aefb6 100755 --- a/RUNTIME/PLAYER.unplug.sh +++ b/RUNTIME/PLAYER.unplug.sh @@ -69,7 +69,7 @@ mkdir -p ~/.zen/tmp/${MOATS} ipfs key rm ${PLAYER}; ipfs key rm ${PLAYER}_feed; ipfs key rm ${G1PUB}; for vk in $(ls -d ~/.zen/game/players/${PLAYER}/voeux/*/* 2>/dev/null | rev | cut -d / -f 1 | rev); do echo "removing wish ${vk}" - ipfs key rm ${vk} + [[ ${vk} != "" ]] && ipfs key rm ${vk} done ## SEND PLAYER LAST KNOW TW