isLAN = PLAYER ONE only

This commit is contained in:
fred 2023-01-01 21:42:31 +01:00
parent 951d467930
commit f6e8962f32
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
echo "## RUNNING PLAYER.refresh"
PLAYERONE="$1"
[[ ! $PLAYERONE ]] && PLAYERONE=($(ls -t ~/.zen/game/players/))
[[ $isLAN ]] && PLAYERONE=$(cat ~/.zen/game/players/.current/.player)
[[ ! $PLAYERONE ]] && PLAYERONE=($(ls -t ~/.zen/game/players/ | grep -Ev "localhost" 2>/dev/null))
## RUNING FOR ALL LOCAL PLAYERS
for PLAYER in ${PLAYERONE[@]}; do