mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
add automated copyright header check (#1696)
Signed-off-by: ollevche <ollevche@gmail.com> Signed-off-by: Oleksandr Levchenkov <ollevche@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ab9c995064
commit
5a161c8bcc
6
website/docs/intro/install/examples/verify-checksum.ps1
Normal file
6
website/docs/intro/install/examples/verify-checksum.ps1
Normal file
@@ -0,0 +1,6 @@
|
||||
$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"
|
||||
}
|
||||
Reference in New Issue
Block a user