From 65ec129dfb50895057a7f2cd69bb159e68f44a70 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 23 Apr 2014 10:28:36 +0200 Subject: [PATCH] Only create default config if it is actually missing (fixes #139) --- cmd/syncthing/main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 98605c50f..9777ee3a0 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -158,9 +158,7 @@ func main() { fatalln(err) } cf.Close() - } - - if len(cfg.Repositories) == 0 { + } else { infoln("No config file; starting with empty defaults") name, _ := os.Hostname()