From fa7ca002508aae1dc1ab5cd3666284ca0e03b83a Mon Sep 17 00:00:00 2001 From: rcourtman Date: Thu, 6 Nov 2025 22:19:16 +0000 Subject: [PATCH] Fix duplicate checksum in build-release.sh The checksum generation was including pulse-host-agent-v*-darwin-arm64.tar.gz twice: once from the *.tar.gz pattern and once from the pulse-host-agent-* pattern. Fixed by using extglob to exclude .tar.gz and .sha256 files from the agent binary patterns since tarballs are already matched separately. --- scripts/build-release.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/build-release.sh b/scripts/build-release.sh index 7c53f9a16..b0182da4d 100755 --- a/scripts/build-release.sh +++ b/scripts/build-release.sh @@ -290,8 +290,9 @@ cp install.sh "$RELEASE_DIR/" # Generate checksums (include tarballs, helm chart, standalone binaries, and install.sh) cd "$RELEASE_DIR" -shopt -s nullglob -checksum_files=( *.tar.gz pulse-sensor-proxy-* pulse-host-agent-* install.sh ) +shopt -s nullglob extglob +# Match tarballs, then standalone binaries (excluding .tar.gz and .sha256), then install.sh +checksum_files=( *.tar.gz pulse-sensor-proxy-!(*.tar.gz|*.sha256) pulse-host-agent-!(*.tar.gz|*.sha256) install.sh ) if compgen -G "pulse-*.tgz" > /dev/null; then checksum_files+=( pulse-*.tgz ) fi