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 {
|
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")
|
||||||
|
Loading…
Reference in New Issue
Block a user