From 63c40e6cc97f9f08e3986963a65b826adc2f8fa3 Mon Sep 17 00:00:00 2001 From: dovixman Date: Wed, 20 Nov 2024 11:58:30 +0100 Subject: [PATCH] replace exported BOT_LIST parameter for internal variable --- start-game.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/start-game.sh b/start-game.sh index 01b807b..5917ca1 100755 --- a/start-game.sh +++ b/start-game.sh @@ -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