diff options
Diffstat (limited to 'cmd/searchix-web')
-rw-r--r-- | cmd/searchix-web/main.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/searchix-web/main.go b/cmd/searchix-web/main.go index f065a84..04c32c2 100644 --- a/cmd/searchix-web/main.go +++ b/cmd/searchix-web/main.go @@ -58,6 +58,10 @@ func main() { log.Fatalf("Failed to setup index: %v", err) } + if *replace || *update { + os.Exit(0) + } + ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt) defer cancel() |