LIST it well

This commit is contained in:
fred 2022-12-11 20:39:27 +01:00
parent e2e1536a26
commit 9166b3bc08
1 changed files with 2 additions and 2 deletions

View File

@ -15,10 +15,10 @@ echo "## RUNNING PLAYER.refresh"
IPFSNODEID=$(ipfs id -f='<id>\n') IPFSNODEID=$(ipfs id -f='<id>\n')
PLAYERONE="$1" PLAYERONE="$1"
[[ ! $PLAYERONE ]] && PLAYERONE=$(ls -t ~/.zen/game/players/) [[ ! $PLAYERONE ]] && PLAYERONE=($(ls -t ~/.zen/game/players/))
## RUNING FOR ALL LOCAL PLAYERS ## RUNING FOR ALL LOCAL PLAYERS
for PLAYER in $PLAYERONE; do for PLAYER in ${PLAYERONE[@]}; do
[[ ! -d ~/.zen/game/players/$PLAYERONE ]] && echo "BAD $PLAYERONE" && continue [[ ! -d ~/.zen/game/players/$PLAYERONE ]] && echo "BAD $PLAYERONE" && continue
MOATS=$(date -u +"%Y%m%d%H%M%S%4N") MOATS=$(date -u +"%Y%m%d%H%M%S%4N")
[[ $PLAYER == "user" || $PLAYER == "zen" ]] && continue [[ $PLAYER == "user" || $PLAYER == "zen" ]] && continue