diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -32,6 +32,13 @@ func main() { log.Fatalf("initial sync failed: %v", err) } + if *dryRun { + log.Println("dry-run complete, exiting") + return + } + + log.Println("watcher: ready, monitoring for changes ...") + ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM) defer cancel() |
