feat: exit after rebuilding index if `--replace` is specified
Alan Pearce alan@alanpearce.eu
Fri, 17 May 2024 12:25:49 +0200
1 files changed, 3 insertions(+), 0 deletions(-)
jump to
M searchix.go → searchix.go
@@ -87,6 +87,9 @@ err = importer.Start(cfg, write, *replace) if err != nil { log.Fatalf("Failed to build index: %v", err) } + if *replace { + return + } } c := make(chan os.Signal, 2)