diff options
author | Alan Pearce | 2024-05-29 10:44:58 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-29 10:44:58 +0200 |
commit | a5e3c144034eab0cb41c4b65557e5c30e877c9fb (patch) | |
tree | c800268ff58e0201469d845eb47b56c3d7ee1fde /cmd | |
parent | 48535aca79a15aecc613dd29d9af99ac0644a239 (diff) | |
download | searchix-a5e3c144034eab0cb41c4b65557e5c30e877c9fb.tar.lz searchix-a5e3c144034eab0cb41c4b65557e5c30e877c9fb.tar.zst searchix-a5e3c144034eab0cb41c4b65557e5c30e877c9fb.zip |
fix: re-enable exit --update/--replace
regression after extracting the command-line handling to cmd/searchix-web
Diffstat (limited to 'cmd')
-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() |