File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -353,6 +353,7 @@ if ($Test) {
353
353
$failed = $false
354
354
355
355
$usingADO = ($null -ne $env: TF_BUILD )
356
+ $repository = ' PSGallery'
356
357
357
358
if ($usingADO ) {
358
359
$repository = ' CFS'
@@ -361,15 +362,12 @@ if ($Test) {
361
362
Register-PSResourceRepository - uri ' https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v2' - Name CFS - Trusted
362
363
}
363
364
}
364
- else {
365
- $repository = ' PSGallery'
366
- }
367
365
368
366
if ($IsWindows ) {
369
367
# PSDesiredStateConfiguration module is needed for Microsoft.Windows/WindowsPowerShell adapter
370
368
$FullyQualifiedName = @ {ModuleName = " PSDesiredStateConfiguration" ;ModuleVersion = " 2.0.7" }
371
369
if (-not (Get-Module - ListAvailable - FullyQualifiedName $FullyQualifiedName ))
372
- { " Installing module PSDesiredStateConfiguration 2.0.7 "
370
+ {
373
371
Install-PSResource - Name PSDesiredStateConfiguration - Version 2.0 .7 - Repository $repository
374
372
}
375
373
}
You can’t perform that action at this time.
0 commit comments