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