Fix oopsie in iteration over files, now use files instead of args
This commit is contained in:
2
main.go
2
main.go
@@ -40,7 +40,7 @@ func main() {
|
|||||||
logger.Info("Patterns expanded to %d files", len(files))
|
logger.Info("Patterns expanded to %d files", len(files))
|
||||||
|
|
||||||
wg := sync.WaitGroup{}
|
wg := sync.WaitGroup{}
|
||||||
for _, file := range flag.Args() {
|
for _, file := range files {
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func(file string) {
|
go func(file string) {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
|
Reference in New Issue
Block a user