From 0c9328293e7427d96b587609ac7e436ab48b489c Mon Sep 17 00:00:00 2001 From: "Xavier G." Date: Thu, 16 Jan 2025 20:33:18 +0100 Subject: [PATCH] Examples: moulti-scoreboard.bash: fix scoreboard control path. --- CHANGELOG.md | 4 ++++ examples/moulti-scoreboard.bash | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a4a0518..1967712 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/examples/moulti-scoreboard.bash b/examples/moulti-scoreboard.bash index 910d710..1855c4b 100755 --- a/examples/moulti-scoreboard.bash +++ b/examples/moulti-scoreboard.bash @@ -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 {