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