commit a80a49e8854e713f2b347c43cc4d1095e4067443
parent 276f6d2a67b74476ea7bd559ca9ccf738c6d73bf
Author: David Schlachter <t480-debian-git@schlachter.ca>
Date: Mon, 10 Nov 2025 00:24:57 -0500
Ignore comments in cron file
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.go b/main.go
@@ -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
}