Skip to content

Commit

Permalink
Add Checksum validation for Premium download to detect corrupt downlo…
Browse files Browse the repository at this point in the history
…ads (#487)
  • Loading branch information
troettinger authored and knithinc committed Jan 9, 2019
1 parent 3424404 commit 5efdfc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Syndication/AzureStack.MarketplaceSyndication.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ function DownloadMarketplaceProduct {
while (-not $completed) {
try {
if ($PremiumDownload) {
& 'C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy\AzCopy.exe' /Source:$Source /Dest:$tmpDestination /Y
& 'C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy\AzCopy.exe' /Source:$Source /Dest:$tmpDestination /Y /CheckMD5
} else {
(New-Object System.Net.WebClient).DownloadFile("$Source",$tmpDestination)
}
Expand Down

0 comments on commit 5efdfc2

Please sign in to comment.