Skip to content

Commit

Permalink
Merge pull request #4 from intelygenz/fix/fix-export-variable
Browse files Browse the repository at this point in the history
Fix export variable
  • Loading branch information
igzjaviergil authored Nov 20, 2024
2 parents 3dfe87d + 63c40e6 commit 747ecd0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions start-game.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,10 @@ function load_config() {
# randomize bot list
botnum=$((${#bots[@]} - 1))
newseq=$(shuf -i 0-$botnum)

BOT_LIST=()
for i in ${newseq}; do
export BOT_LIST+=("${bots[$i]}")
BOT_LIST+=("${bots[$i]}")
done
# make sure log & output dir exists
for dir in log output; do
Expand Down Expand Up @@ -215,7 +217,7 @@ function add_game_server() {
hostname: ${GAME_CONTAINER_NAME}
restart: no
environment:
BOARD_PATH: "/maps/${THIS_MAP}"
BOARD_PATH: "./maps/${THIS_MAP}"
TURNS: "${THIS_GAME_TURNS}"
TURN_REQUEST_TIMEOUT: "${THIS_GAME_REQ_TIMEOUT}"
TIME_BETWEEN_ROUNDS: "${THIS_GAME_TIME_ROUNDS}"
Expand Down

0 comments on commit 747ecd0

Please sign in to comment.