use ls-sorted order

This commit is contained in:
Stephen McQuay 2014-10-13 01:09:40 +02:00
parent c3a724cec4
commit c368eb1bcb

View File

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