Skip to content

Commit 5efdfc2

Browse files
troettingerknithinc
authored andcommitted
Add Checksum validation for Premium download to detect corrupt downloads (#487)
1 parent 3424404 commit 5efdfc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Syndication/AzureStack.MarketplaceSyndication.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ function DownloadMarketplaceProduct {
503503
while (-not $completed) {
504504
try {
505505
if ($PremiumDownload) {
506-
& 'C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy\AzCopy.exe' /Source:$Source /Dest:$tmpDestination /Y
506+
& 'C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy\AzCopy.exe' /Source:$Source /Dest:$tmpDestination /Y /CheckMD5
507507
} else {
508508
(New-Object System.Net.WebClient).DownloadFile("$Source",$tmpDestination)
509509
}

0 commit comments

Comments
 (0)