We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e461bb commit fc554deCopy full SHA for fc554de
cleanup.ps1
@@ -38,6 +38,7 @@ foreach ($v in $installedVersion) {
38
39
$newestVersion = Find-Module $module | Select-Object Version
40
Write-Output "`nThe latest version of $module in the PSGallery is: $($newestVersion.Version)"
41
+$olderVersions = @( )
42
if ($installedVersion.Count -gt 1) {
43
$olderVersions = @($installedVersion | Where-Object { [version]$_.Version -lt [version]$newestVersion.Version })
44
}
0 commit comments