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:
Oleksandr Levchenkov
2024-06-03 16:49:36 +03:00
committed by GitHub
parent ab9c995064
commit 5a161c8bcc
85 changed files with 306 additions and 55 deletions

View 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"
}