fix up numbering
This commit is contained in:
parent
d9063c80e3
commit
2f5c430878
@ -27,7 +27,7 @@ func main() {
|
||||
if dirErr != nil {
|
||||
panic(dirErr)
|
||||
}
|
||||
baseTrimmer, _ := regexp.Compile("[0-9x]+-")
|
||||
baseTrimmer, _ := regexp.Compile("^[0-9x]+-")
|
||||
for _, fi := range fileInfos {
|
||||
baseName := baseTrimmer.ReplaceAllString(fi.Name(), "")
|
||||
sourceNames = append(sourceNames, baseName)
|
||||
@ -56,6 +56,13 @@ func main() {
|
||||
}
|
||||
os.Exit(1)
|
||||
}
|
||||
for _, indexName := range indexNames {
|
||||
_, ok := sourceMap[indexName]
|
||||
if !ok {
|
||||
fmt.Printf("%s\n", indexName)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
// rename some stuff
|
||||
for index, indexName := range indexNames {
|
||||
|
Loading…
x
Reference in New Issue
Block a user