aboutsummaryrefslogtreecommitdiff
path: root/yae.go
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-11 21:15:27 +0000
committerFuwn <[email protected]>2024-10-11 21:15:27 +0000
commit961f1a3092808ffbb18dc9451d562240ffd54f74 (patch)
treef1a5a6cfd5ef8291824822a1e7ebf7110c73cfd6 /yae.go
parentrefactor(yae)!: change uri references to url (diff)
downloadyae-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.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/yae.go b/yae.go
index d997724..74e2fcd 100644
--- a/yae.go
+++ b/yae.go
@@ -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") {