aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.go b/main.go
index 24135f5..077aec2 100644
--- a/main.go
+++ b/main.go
@@ -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()