Commit f1451fd
authored
fix(plugin-install): anchor checksum grep to exact filename (cloudnative-pg#10411)
The checksums file now includes `.sbom.json` entries for each artifact.
The unanchored `grep` in `hash_sha256_verify` matched both the tarball
and its `.sbom.json` entry, producing a multi-line "want" value that
never matched the computed hash, causing the install script to fail with
a checksum mismatch error.
Anchor the pattern to the exact filename (`" ${BASENAME}$"`) to avoid
false matches.
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>1 parent 46efe17 commit f1451fd
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| |||
0 commit comments