diff --git a/start-game.sh b/start-game.sh index 38cedb9..32224c1 100755 --- a/start-game.sh +++ b/start-game.sh @@ -138,8 +138,8 @@ function load_config() { # check if turns is defined if [[ ! "${turns}" ]]; then - _error "Game turns not defined" - fi + _error "Game turns not defined" + fi export THIS_GAME_TURNS="${turns}" _info "📝 Loaded configfile: ${YELLOW}${1}" @@ -156,6 +156,8 @@ function load_config() { for dir in log output; do [ -d "${REPO_DIR}/${dir}" ] || mkdir -p "${REPO_DIR}/${dir}" done + # fix output dir permissions *required* + chmod 0777 "${OUTPUT_DIR}" export GAME_CONFIG_FILE="${1}" } @@ -263,7 +265,7 @@ function create_game_log() { # ::: # ::: Game Round: ${GAME_TIMESTAMP} # ::: Config file: ${GAME_CONFIG_FILE} -# ::: Players: $(echo "${bots[@]}" | xargs) +# ::: Players: $(echo "${BOT_LIST[*]}" | xargs) # ::: Map: $(echo "${map}") # :::