about summary refs log tree commit diff stats
path: root/cmd
diff options
context:
space:
mode:
authorAlan Pearce2024-05-29 10:44:58 +0200
committerAlan Pearce2024-05-29 10:44:58 +0200
commita5e3c144034eab0cb41c4b65557e5c30e877c9fb (patch)
treec800268ff58e0201469d845eb47b56c3d7ee1fde /cmd
parent48535aca79a15aecc613dd29d9af99ac0644a239 (diff)
downloadsearchix-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.go4
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()