We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a045e59 commit ff77f91Copy full SHA for ff77f91
utils/utils.go
@@ -59,6 +59,9 @@ func GetCompatibleWith(name string) map[string][]firmware {
59
fw := regexp.MustCompile(knownBoards[name].match)
60
61
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
62
+ if info.IsDir() {
63
+ return nil
64
+ }
65
unixPath := filepath.ToSlash(path)
66
parts := strings.Split(unixPath, "/")
67
fancyName := parts[len(parts)-3] + " " + parts[len(parts)-2]
@@ -67,9 +70,6 @@ func GetCompatibleWith(name string) map[string][]firmware {
70
Name: fancyName,
68
71
IsLoader: loader.MatchString(path) && !listAll,
69
72
}
- if info.IsDir() {
- return nil
- }
73
folder := filepath.Dir(path)
74
lowerPath, _ := filepath.Rel(root, path)
75
lowerPath = strings.ToLower(lowerPath)
0 commit comments