Skip to content

Commit

Permalink
fix(start-game): fix output dir permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
pablon committed Nov 14, 2024
1 parent c16652f commit b92385b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions start-game.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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}"
}

Expand Down Expand Up @@ -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}")
# :::
Expand Down

0 comments on commit b92385b

Please sign in to comment.