Skip to content

Commit

Permalink
Fix for extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
troettinger committed Nov 21, 2017
1 parent 7762ab0 commit 5299130
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Syndication/AzureStack.MarketplaceSyndication.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,15 @@ $Marketitems|Out-GridView -Title 'Azure Marketplace Items' -PassThru|foreach{
# download vhd
$vhdName = $productDetails.properties.galleryItemIdentity
$vhdSource = $downloadDetails.properties.osDiskImage.sourceBlobSasUri
If ([string]::IsNullOrEmpty($vhdsource)) {exit} else {
$FileExists=Test-Path "$destination\$productid.vhd"
If ($FileExists -eq $true) {Remove-Item "$destination\$productid.vhd" -force} else {
New-Item "$destination\$productid.vhd" }
$vhdDestination = "$destination\$productid.vhd"

Start-BitsTransfer -source $vhdSource -destination $vhdDestination -Priority High
}
}

else {
$a.popup("Legal Terms not accpeted, canceling")
Expand Down

0 comments on commit 5299130

Please sign in to comment.