From 280cfb50ebb78a8303356d7d8523a88847ab7919 Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 7 Nov 2022 01:37:00 +0100 Subject: [PATCH] remove cache for today player --- ASTROBOT/PLAYER.refresh.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ASTROBOT/PLAYER.refresh.sh b/ASTROBOT/PLAYER.refresh.sh index c523b64c1..3bbf0b578 100755 --- a/ASTROBOT/PLAYER.refresh.sh +++ b/ASTROBOT/PLAYER.refresh.sh @@ -39,7 +39,9 @@ for PLAYER in $(ls -t ~/.zen/game/players/); do ## REFRESH ASTRONAUTE TW ASTRONAUTENS=$(ipfs key list -l | grep $PLAYER | cut -d ' ' -f1) [[ ! $ASTRONAUTENS || $COINS -lt 0 ]] && echo "WARNING No $PLAYER in keystore or Missing $COINS G1 --" && ASTRONAUTENS=$ASTRONS - [[ ! $ASTRONAUTENS ]] && echo "Missing $PLAYER IPNS KEY - CONTINUE --" && continue + + [[ ! -f ~/.zen/game/players/$PLAYER/enc.secret.dunikey ]] && echo "$PLAYER IPNS KEY NOT MINE CONTINUE -- " \ + && mv ~/.zen/game/players/$PLAYER ~/.zen/game/players/.$PLAYER && continue rm -Rf ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/ mkdir -p ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/