diff options
| author | nytpu <alex@nytpu.com> | 2021-03-18 17:02:12 -0600 |
|---|---|---|
| committer | nytpu <alex@nytpu.com> | 2021-03-18 17:02:12 -0600 |
| commit | 562869c8ac8961ddd93afd9f275942f9d88eca44 (patch) | |
| tree | da4fe480fa6fe4c16b046256d94c35d15ed12d56 | |
| parent | b4d303e24ef7c16ff9ba6bdeab704783040a770e (diff) | |
write subscriptions.gmi after removing sub
| -rw-r--r-- | comitium.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/comitium.go b/comitium.go index 1dc25d8..9714a23 100644 --- a/comitium.go +++ b/comitium.go @@ -92,6 +92,11 @@ func main() { argCheck(c.Args(), 1, true, "Please provide a URL to remove.") delete(core.Data.Feeds, c.Arg(0)) delete(core.Data.Pages, c.Arg(0)) + err = core.Data.WriteSubs(dataPath) + if err != nil { + fmt.Fprintf(os.Stderr, "Error saving subscriptions: %v\n", err) + os.Exit(1) + } } err = core.Data.WriteJSON(dataPath) |
