mirror of
https://github.com/msvc-win/get.msvc.win.git
synced 2025-12-16 05:07:39 +00:00
Skip files that do not exist
This commit is contained in:
parent
c2e75e9880
commit
6dc822a57e
3 changed files with 15 additions and 0 deletions
3
32
3
32
|
|
@ -128,6 +128,9 @@ function Main {
|
|||
# --- Check Signature ---
|
||||
foreach ($item in $downloads) {
|
||||
$outFile = Join-Path $tempDir $item.Name
|
||||
if (-not (Test-Path -Path $outFile)) {
|
||||
continue
|
||||
}
|
||||
Write-Host "Verifying signature of $($item.Name)..."
|
||||
$signature = Get-AuthenticodeSignature $outFile
|
||||
if ($signature.SignerCertificate.Subject -like "*CN=Microsoft Corporation*" -and $signature.Status -eq "Valid") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue