From f6570e18b75c8a5ebfa552e06e67477950505ea6 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Tue, 11 Nov 2025 20:41:42 +0000 Subject: [PATCH] Fix checksum extraction to use word boundaries The grep pattern was too loose and could match filenames like: - pulse-v4.29.0-linux-amd64.tar.gz (correct) - pulse-v4.29.0-linux-amd64.tar.gz.sha256 (also matched) Using grep -w ensures we only match the exact filename as a complete word, preventing false matches on files with the same prefix. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 3f14174..69e77fb 100755 --- a/install.sh +++ b/install.sh @@ -1725,7 +1725,7 @@ download_pulse() { # Try checksums.txt first (v4.29.0+) if wget -q --timeout=60 --tries=2 -O "/tmp/checksums.txt" "$CHECKSUMS_URL" 2>/dev/null; then - EXPECTED_CHECKSUM=$(grep "${ARCHIVE_NAME}" /tmp/checksums.txt 2>/dev/null | awk '{print $1}') + EXPECTED_CHECKSUM=$(grep -w "${ARCHIVE_NAME}" /tmp/checksums.txt 2>/dev/null | awk '{print $1}') rm -f /tmp/checksums.txt fi