diff options
| author | David Schlachter <t480-debian-git@schlachter.ca> | 2025-11-10 00:24:57 -0500 |
|---|---|---|
| committer | David Schlachter <t480-debian-git@schlachter.ca> | 2025-11-10 00:24:57 -0500 |
| commit | a80a49e8854e713f2b347c43cc4d1095e4067443 (patch) | |
| tree | 888c1c3c8ff5c4ec600231d4421bd026d1500c86 /main.go | |
| parent | 276f6d2a67b74476ea7bd559ca9ccf738c6d73bf (diff) | |
Ignore comments in cron file
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -103,7 +103,7 @@ func readInput(p string) (map[inputLine]struct{}, error) { scanner := bufio.NewScanner(f) for scanner.Scan() { line := strings.TrimSpace(scanner.Text()) - if line == "" { + if line == "" || strings.HasPrefix(line, "#") { continue } |
