From a5e3c144034eab0cb41c4b65557e5c30e877c9fb Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 29 May 2024 10:44:58 +0200 Subject: fix: re-enable exit --update/--replace regression after extracting the command-line handling to cmd/searchix-web --- cmd/searchix-web/main.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd/searchix-web/main.go') 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() -- cgit 1.4.1