From 9166b3bc087010c3dc0aad585fcdad6a4c6c1f1d Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 11 Dec 2022 20:39:27 +0100 Subject: [PATCH] LIST it well --- ASTROBOT/PLAYER.refresh.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ASTROBOT/PLAYER.refresh.sh b/ASTROBOT/PLAYER.refresh.sh index f03a34d3..eba5f251 100755 --- a/ASTROBOT/PLAYER.refresh.sh +++ b/ASTROBOT/PLAYER.refresh.sh @@ -15,10 +15,10 @@ echo "## RUNNING PLAYER.refresh" IPFSNODEID=$(ipfs id -f='\n') PLAYERONE="$1" -[[ ! $PLAYERONE ]] && PLAYERONE=$(ls -t ~/.zen/game/players/) +[[ ! $PLAYERONE ]] && PLAYERONE=($(ls -t ~/.zen/game/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 MOATS=$(date -u +"%Y%m%d%H%M%S%4N") [[ $PLAYER == "user" || $PLAYER == "zen" ]] && continue