Skip to content

Commit fc554de

Browse files
cleanup.ps1 - Support strict mode (#8612)
1 parent 3e461bb commit fc554de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cleanup.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ foreach ($v in $installedVersion) {
3838

3939
$newestVersion = Find-Module $module | Select-Object Version
4040
Write-Output "`nThe latest version of $module in the PSGallery is: $($newestVersion.Version)"
41+
$olderVersions = @( )
4142
if ($installedVersion.Count -gt 1) {
4243
$olderVersions = @($installedVersion | Where-Object { [version]$_.Version -lt [version]$newestVersion.Version })
4344
}

0 commit comments

Comments
 (0)