aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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") {