write subscriptions.gmi after removing sub
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user