diff options
| author | Fuwn <[email protected]> | 2024-10-11 21:15:27 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-11 21:15:27 +0000 |
| commit | 961f1a3092808ffbb18dc9451d562240ffd54f74 (patch) | |
| tree | f1a5a6cfd5ef8291824822a1e7ebf7110c73cfd6 /yae.go | |
| parent | refactor(yae)!: change uri references to url (diff) | |
| download | yae-961f1a3092808ffbb18dc9451d562240ffd54f74.tar.xz yae-961f1a3092808ffbb18dc9451d562240ffd54f74.zip | |
feat(yae): only write when at least one source updated
Diffstat (limited to 'yae.go')
| -rw-r--r-- | yae.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -208,8 +208,10 @@ func main() { } } - if err := sources.Save(c.String("sources")); err != nil { - return err + if len(updates) > 0 { + if err := sources.Save(c.String("sources")); err != nil { + return err + } } if c.Bool("show-updated-only") { |