From 0e22ccb0b883b6103741ae9f9146f4bd2e8a7f96 Mon Sep 17 00:00:00 2001 From: wangbo Date: Fri, 31 Jul 2026 00:34:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(acceptance):=20=E5=85=BC=E5=AE=B9=20macOS?= =?UTF-8?q?=20Bash=203.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将容量报告路径中的 Bash 4 小写参数展开替换为 POSIX tr,避免验收在提交首轮负载前因 bad substitution 中断。\n\n验证:GNU Bash 3.2.57 实际执行;bash -n;shellcheck -x -P .;git diff --check。 --- scripts/cluster/run-production-acceptance.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/cluster/run-production-acceptance.sh b/scripts/cluster/run-production-acceptance.sh index c5df9be..58b9a40 100755 --- a/scripts/cluster/run-production-acceptance.sh +++ b/scripts/cluster/run-production-acceptance.sh @@ -831,7 +831,9 @@ verify_pressure_report() { run_capacity_round() { local profile=$1 local repetition=$2 - local prefix=$report_root/${profile,,}-$repetition + local profile_slug + profile_slug=$(printf '%s' "$profile" | tr '[:upper:]' '[:lower:]') + local prefix=$report_root/$profile_slug-$repetition local pressure_report=$prefix-pressure.csv local pressure_stop=$temporary_root/pressure-stop local pressure_pid status=0