Skip to content

Commit 3d8d5e8

Browse files
Retia-Adolfrasa
authored andcommitted
Improvements for the reset command to deal with empty current alias dir correctly (ScoopInstaller#2896)
1 parent 478f52c commit 3d8d5e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/versions.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function versions($app, $global) {
99
$appdir = appdir $app $global
1010
if(!(test-path $appdir)) { return @() }
1111

12-
sort_versions (Get-ChildItem $appdir -dir -attr !reparsePoint | ForEach-Object { $_.name })
12+
sort_versions (Get-ChildItem $appdir -dir -attr !reparsePoint | Where-Object { $null -ne $(Get-ChildItem $_.fullname) } | ForEach-Object { $_.name })
1313
}
1414

1515
function version($ver) {

0 commit comments

Comments
 (0)