use ls-sorted order
This commit is contained in:
parent
c3a724cec4
commit
c368eb1bcb
6
main.go
6
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")
|
||||
|
Loading…
Reference in New Issue
Block a user