Skip to content

Commit 3d8d5e8

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/versions.ps1

Lines changed: 1 addition & 1 deletion
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)