diff --git a/main.go b/main.go index ca4daf0..5590f35 100644 --- a/main.go +++ b/main.go @@ -24,7 +24,7 @@ func main() { } } - files := map[string]os.FileInfo{} + files := []string{} for _, binDir := range binDirs { fi, err := os.Stat(binDir) @@ -42,13 +42,13 @@ func main() { continue } for _, di := range dirInfo { - files[filepath.Join(binDir, di.Name())] = di + files = append(files, filepath.Join(binDir, di.Name())) } } execs := []string{} buf := &bytes.Buffer{} - for name, _ := range files { + for _, name := range files { buf.Reset() if !exists(name) { log.Fatal("this should never happen: file we just found isn't there now")