Skip to content

Commit fa7ca00

Browse files
committed
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.
1 parent b356ba0 commit fa7ca00

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/build-release.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,9 @@ cp install.sh "$RELEASE_DIR/"
290290

291291
# Generate checksums (include tarballs, helm chart, standalone binaries, and install.sh)
292292
cd "$RELEASE_DIR"
293-
shopt -s nullglob
294-
checksum_files=( *.tar.gz pulse-sensor-proxy-* pulse-host-agent-* install.sh )
293+
shopt -s nullglob extglob
294+
# Match tarballs, then standalone binaries (excluding .tar.gz and .sha256), then install.sh
295+
checksum_files=( *.tar.gz pulse-sensor-proxy-!(*.tar.gz|*.sha256) pulse-host-agent-!(*.tar.gz|*.sha256) install.sh )
295296
if compgen -G "pulse-*.tgz" > /dev/null; then
296297
checksum_files+=( pulse-*.tgz )
297298
fi

0 commit comments

Comments
 (0)