Skip to content

Commit 5299130

Browse files
committed
Fix for extensions
1 parent 7762ab0 commit 5299130

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Syndication/AzureStack.MarketplaceSyndication.psm1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,15 @@ $Marketitems|Out-GridView -Title 'Azure Marketplace Items' -PassThru|foreach{
147147
# download vhd
148148
$vhdName = $productDetails.properties.galleryItemIdentity
149149
$vhdSource = $downloadDetails.properties.osDiskImage.sourceBlobSasUri
150+
If ([string]::IsNullOrEmpty($vhdsource)) {exit} else {
150151
$FileExists=Test-Path "$destination\$productid.vhd"
151152
If ($FileExists -eq $true) {Remove-Item "$destination\$productid.vhd" -force} else {
152153
New-Item "$destination\$productid.vhd" }
153154
$vhdDestination = "$destination\$productid.vhd"
155+
154156
Start-BitsTransfer -source $vhdSource -destination $vhdDestination -Priority High
155157
}
158+
}
156159

157160
else {
158161
$a.popup("Legal Terms not accpeted, canceling")

0 commit comments

Comments
 (0)