From b92385b98095002aae89ea1140390c8d14fe8558 Mon Sep 17 00:00:00 2001 From: Pablo Nazar <73798198+pablon@users.noreply.github.com> Date: Thu, 14 Nov 2024 09:42:23 +0100 Subject: [PATCH] fix(start-game): fix output dir permissions --- start-game.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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}") # :::