File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -324,10 +324,13 @@ if (!$Clippy -and !$SkipBuild) {
324
324
if ($Test ) {
325
325
$failed = $false
326
326
327
- $FullyQualifiedName = @ {ModuleName = " PSDesiredStateConfiguration" ;ModuleVersion = " 2.0.7" }
328
- if (-not (Get-Module - ListAvailable - FullyQualifiedName $FullyQualifiedName ))
329
- { " Installing module PSDesiredStateConfiguration 2.0.7"
330
- Install-PSResource - Name PSDesiredStateConfiguration - Version 2.0 .7 - Repository PSGallery - TrustRepository
327
+ if ($IsWindows ) {
328
+ # PSDesiredStateConfiguration module is needed for Microsoft.Windows/WindowsPowerShell adapter
329
+ $FullyQualifiedName = @ {ModuleName = " PSDesiredStateConfiguration" ;ModuleVersion = " 2.0.7" }
330
+ if (-not (Get-Module - ListAvailable - FullyQualifiedName $FullyQualifiedName ))
331
+ { " Installing module PSDesiredStateConfiguration 2.0.7"
332
+ Install-PSResource - Name PSDesiredStateConfiguration - Version 2.0 .7 - Repository PSGallery - TrustRepository
333
+ }
331
334
}
332
335
333
336
if (-not (Get-Module - ListAvailable - Name Pester))
You can’t perform that action at this time.
0 commit comments