Archived
Only create default config if it is actually missing (fixes #139)
This commit is contained in:
1 parent
3e4d628f54
commit
65ec129dfb
1 file changed
+1
-3
@@ -158,9 +158,7 @@ func main() {
|
|||||||
fatalln(err)
|
fatalln(err)
|
||||||
}
|
}
|
||||||
cf.Close()
|
cf.Close()
|
||||||
}
|
} else {
|
||||||
|
|
||||||
if len(cfg.Repositories) == 0 {
|
|
||||||
infoln("No config file; starting with empty defaults")
|
infoln("No config file; starting with empty defaults")
|
||||||
name, _ := os.Hostname()
|
name, _ := os.Hostname()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user