mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 02:13:03 +08:00
Fix SHA-256 name
This commit is contained in:
parent
7266d4b95b
commit
138bce34f2
@ -31,7 +31,7 @@ function Get-Credential-Backwards-Compatible()
|
||||
}
|
||||
}
|
||||
|
||||
function Get-Hash-SHA265()
|
||||
function Get-Hash-SHA256()
|
||||
{
|
||||
if (Test-Command -commandName 'Microsoft.PowerShell.Utility\Get-FileHash')
|
||||
{
|
||||
@ -257,7 +257,7 @@ function SelectProgram([Parameter(Mandatory=$true)][string]$Dependency)
|
||||
|
||||
performDownload $Dependency $url $downloadsDir $downloadPath $downloadVersion $requiredVersion
|
||||
|
||||
$downloadedFileHash = Get-Hash-SHA265 $downloadPath
|
||||
$downloadedFileHash = Get-Hash-SHA256 $downloadPath
|
||||
if ($expectedDownloadedFileHash -ne $downloadedFileHash)
|
||||
{
|
||||
Write-Host ("`nFile does not have expected hash:`n" +
|
||||
|
Loading…
Reference in New Issue
Block a user