mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-02-18 00:17:39 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user