Skip to content

Commit 5162b86

Browse files
authored
Merge pull request #669 from jwhb/fix-files-in-limadir
Fix `limactl ls` treating files in limadir as instances
2 parents 60a43dc + cc813c8 commit 5162b86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/store/store.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ func Instances() ([]string, error) {
2525
if strings.HasPrefix(f.Name(), ".") || strings.HasPrefix(f.Name(), "_") {
2626
continue
2727
}
28+
if !f.IsDir() {
29+
continue
30+
}
2831
names = append(names, f.Name())
2932
}
3033
return names, nil

0 commit comments

Comments
 (0)