Skip to content

Commit

Permalink
Examples: moulti-scoreboard.bash: fix scoreboard control path.
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierog committed Jan 16, 2025
1 parent 1fec286 commit 0c93282
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Although Moulti's Python packages, modules and functions are obviously available
This behaviour can be prevented by setting the `MOULTI_RUN_NO_SUFFIX` environment variable or using the `-n` / `--no-suffix` command-line option.
The behaviour of `moulti init` remains unchanged.

### Fixed

- `moulti-scoreboard.bash` example script: make scoreboard control path instance-specific.

## [1.29.0] - 2025-01-12

### Changed
Expand Down
5 changes: 3 additions & 2 deletions examples/moulti-scoreboard.bash
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@

# Part 1: variables and functions users should source to control the scoreboard:

export MOULTI_INSTANCE="scoreboard-${SCOREBOARD_INSTANCE:-default}"
export SCOREBOARD_CONTROL_PATH="${SCOREBOARD_CONTROL_PATH:-/tmp/scoreboard-control}"
scoreboard_instance="${SCOREBOARD_INSTANCE:-default}"
export MOULTI_INSTANCE="scoreboard-${scoreboard_instance}"
export SCOREBOARD_CONTROL_PATH="${SCOREBOARD_CONTROL_PATH:-/tmp/scoreboard-${scoreboard_instance}-control}"
declare -a SCOREBOARD_SCORES=('' 0 0)

function scoreboard_score_inc {
Expand Down

0 comments on commit 0c93282

Please sign in to comment.