isLAN = PLAYER ONE only
This commit is contained in:
parent
951d467930
commit
f6e8962f32
|
@ -14,7 +14,8 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
||||||
echo "## RUNNING PLAYER.refresh"
|
echo "## RUNNING PLAYER.refresh"
|
||||||
|
|
||||||
PLAYERONE="$1"
|
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
|
## RUNING FOR ALL LOCAL PLAYERS
|
||||||
for PLAYER in ${PLAYERONE[@]}; do
|
for PLAYER in ${PLAYERONE[@]}; do
|
||||||
|
|
Loading…
Reference in New Issue