Skip to content

Commit

Permalink
Update win_psmodule.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
mfortin authored Nov 11, 2024
1 parent be3ba7c commit f37af87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/win_psmodule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Function Install-PrereqModule {
$job = Start-Job -ScriptBlock {
$ErrorActionPreference = 'Stop'

if (-not (Get-PackageProvider -ListAvailable -ErrorAction SilentlyContinue | Where-Object { ($_.name -eq 'Nuget') -and ($_.version -ge "2.8.5.201") }) ) {
if (-not (Get-PackageProvider -ListAvailable | Where-Object { ($_.name -eq 'Nuget') -and ($_.version -ge "2.8.5.201") }) ) {
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force | Out-Null
}

Expand Down

0 comments on commit f37af87

Please sign in to comment.