Skip to content

Commit 0c93282

Browse files
committed
Examples: moulti-scoreboard.bash: fix scoreboard control path.
1 parent 1fec286 commit 0c93282

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ Although Moulti's Python packages, modules and functions are obviously available
1515
This behaviour can be prevented by setting the `MOULTI_RUN_NO_SUFFIX` environment variable or using the `-n` / `--no-suffix` command-line option.
1616
The behaviour of `moulti init` remains unchanged.
1717

18+
### Fixed
19+
20+
- `moulti-scoreboard.bash` example script: make scoreboard control path instance-specific.
21+
1822
## [1.29.0] - 2025-01-12
1923

2024
### Changed

examples/moulti-scoreboard.bash

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121

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

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

2829
function scoreboard_score_inc {

0 commit comments

Comments
 (0)