Skip to content

Commit 4b91ea1

Browse files
authored
🚸 Reduce information noise when getting outdated modules (fixed)
1 parent 8fa10ba commit 4b91ea1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Get-OutdatedModules.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ Get-Module -ListAvailable |
2828
Name = $name
2929
Scope = Get-ModuleScope.ps1 $name |Select-Object -ExpandProperty Scope
3030
CurrentVersion = $group |Measure-Object Version -Maximum |Select-Object -ExpandProperty Maximum
31-
AvailableVersion = Find-Module $name -infa SilentlyContinue -ErrorAction Stop |
32-
Select-Object -ExpandProperty Version
31+
AvailableVersion = Find-Module $name -infa Ignore -ErrorAction Stop |Select-Object -ExpandProperty Version
3332
}}
3433
catch{}
3534
} |

0 commit comments

Comments
 (0)