all repos — searchix @ a5e3c144034eab0cb41c4b65557e5c30e877c9fb

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: re-enable exit --update/--replace

regression after extracting the command-line handling to
cmd/searchix-web
Alan Pearce alan@alanpearce.eu
Wed, 29 May 2024 10:44:58 +0200
commit

a5e3c144034eab0cb41c4b65557e5c30e877c9fb

parent

48535aca79a15aecc613dd29d9af99ac0644a239

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M cmd/searchix-web/main.gocmd/searchix-web/main.go
@@ -58,6 +58,10 @@ if err != nil { 		log.Fatalf("Failed to setup index: %v", err)
 	}
 
+	if *replace || *update {
+		os.Exit(0)
+	}
+
 	ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
 	defer cancel()