Skip to content

Commit

Permalink
Merge pull request #136 from chriskaliX/main
Browse files Browse the repository at this point in the history
fix cron path
  • Loading branch information
EBWi11 committed Oct 18, 2021
2 parents 8ca5e36 + f9fcf43 commit d1da978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/collector/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func GetCron(rootfs string) (crons []Cron, err error) {
}
return nil
}})
godirwalk.Walk(rootfs+"/etc/corn.d", &godirwalk.Options{Callback: func(path string, de *godirwalk.Dirent) error {
godirwalk.Walk(rootfs+"/etc/cron.d", &godirwalk.Options{Callback: func(path string, de *godirwalk.Dirent) error {
if de.IsRegular() {
f, err := os.Open(path)
if err != nil {
Expand Down

0 comments on commit d1da978

Please sign in to comment.