mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-21 10:47:34 -05:00
Signed-off-by: ollevche <ollevche@gmail.com> Signed-off-by: Oleksandr Levchenkov <ollevche@gmail.com>
6 lines
301 B
PowerShell
6 lines
301 B
PowerShell
$zipFile="tofu_YOURVERSION_REPLACEME.zip"
|
|
$checksum = $(Get-FileHash -Algorithm SHA256 $zipFile).Hash
|
|
$expectedChecksum = $((Get-Content "tofu_YOURVERSION_REPLACEME_SHA256SUMS" | Select-String -Pattern $zipFile) -split '\s+')[0]
|
|
if ($realHash -ne $expectedHash) {
|
|
Write-Error "Checksum mismatch"
|
|
} |