mirror of
https://github.com/patriceckhart/zot.git
synced 2026-06-26 21:36:31 +02:00
fix windows installer checksum lookup
This commit is contained in:
parent
25a4cafb4e
commit
f37f42b189
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ try {
|
|||
|
||||
Msg "verifying checksum"
|
||||
$checksums = Invoke-WebRequest -UseBasicParsing -Headers $headers -Uri $checksumUrl | Select-Object -ExpandProperty Content
|
||||
$expected = ($checksums -split "`n" | Where-Object { $_ -match [regex]::Escape($archive) + "$" } | Select-Object -First 1)
|
||||
$expected = ($checksums -split "`n" | ForEach-Object { $_.Trim() } | Where-Object { $_ -match ("\s" + [regex]::Escape($archive) + "$") } | Select-Object -First 1)
|
||||
if (-not $expected) { Die "no checksum for $archive in checksums.txt" }
|
||||
$expectedHash = ($expected -split "\s+")[0]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue