FOUND : ${PLAYERONE[@]}

This commit is contained in:
fred 2023-02-23 20:58:01 +01:00
parent e31f00d0e4
commit a012b67e08
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ PLAYERONE="$1"
[[ $isLAN ]] && PLAYERONE=$(cat ~/.zen/game/players/.current/.player 2>/dev/null)
[[ ! $PLAYERONE ]] && PLAYERONE=($(ls -t ~/.zen/game/players/ | grep -Ev "localhost" 2>/dev/null))
echo "FOUND : ${PLAYERONE[@]}"
## RUNING FOR ALL LOCAL PLAYERS
for PLAYER in ${PLAYERONE[@]}; do
[[ ! -d ~/.zen/game/players/$PLAYER ]] && echo "BAD $PLAYERONE" && continue