File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ function Bump-AzVersion
175
175
Write-Host " Getting local Az information..." - ForegroundColor Yellow
176
176
$localAz = Import-PowerShellDataFile - Path " $PSScriptRoot \Az\Az.psd1"
177
177
Write-Host " Getting Az $ReleaseType information from gallery..." - ForegroundColor Yellow
178
+
178
179
if (" LTS" -eq $ReleaseType ){
179
180
if (Test-Path Env:\DEFAULT_PS_REPOSITORY_URL) {
180
181
Write-Host " Using DEFAULT_PS_REPOSITORY_NAME: $Env: DEFAULT_PS_REPOSITORY_NAME "
@@ -216,11 +217,7 @@ function Bump-AzVersion
216
217
continue
217
218
}
218
219
219
- $galleryVersion = $galleryDependency.RequiredVersion
220
- if ([string ]::IsNullOrEmpty($galleryVersion ))
221
- {
222
- $galleryVersion = $galleryDependency.MinimumVersion
223
- }
220
+ $galleryVersion = $galleryDependency.VersionRange.MinVersion.OriginalVersion
224
221
225
222
$localVersion = $localDependency.RequiredVersion
226
223
# Az.Accounts uses ModuleVersion to annote Version
@@ -364,11 +361,7 @@ function Update-AzPreviewChangelog
364
361
continue
365
362
}
366
363
367
- $galleryVersion = $galleryDependency.RequiredVersion
368
- if ([string ]::IsNullOrEmpty($galleryVersion ))
369
- {
370
- $galleryVersion = $galleryDependency.MinimumVersion
371
- }
364
+ $galleryVersion = $galleryDependency.VersionRange.MinVersion.OriginalVersion
372
365
373
366
$localVersion = $localDependency.RequiredVersion
374
367
# Az.Accounts uses ModuleVersion to annote Version
You can’t perform that action at this time.
0 commit comments