Skip to content

Commit

Permalink
replace exported BOT_LIST parameter for internal variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dovixman committed Nov 20, 2024
1 parent 8bea433 commit 63c40e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion start-game.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,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

0 comments on commit 63c40e6

Please sign in to comment.