about summary refs log tree commit diff stats
path: root/cmd/searchix-web
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/searchix-web')
-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()