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.
This commit is contained in:
rcourtman
2025-11-06 22:19:16 +00:00
parent b356ba0fec
commit fa7ca00250

View File

@@ -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