remove cache for today player

This commit is contained in:
fred 2022-11-07 01:37:00 +01:00
parent 619385b245
commit 280cfb50eb
1 changed files with 3 additions and 1 deletions

View File

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