From 9b4264f346397fd7bd0d2bbb6fee394089bc0089 Mon Sep 17 00:00:00 2001 From: morganamilo Date: Wed, 7 Mar 2018 16:26:15 +0000 Subject: [PATCH] Set default config in the correct place --- cmd.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd.go b/cmd.go index 55b41f76..7fc1dfad 100644 --- a/cmd.go +++ b/cmd.go @@ -89,6 +89,8 @@ func initPaths() { } func initConfig() (err error) { + defaultSettings(&config) + if _, err = os.Stat(configFile); os.IsNotExist(err) { err = os.MkdirAll(filepath.Dir(configFile), 0755) if err != nil { @@ -114,7 +116,6 @@ func initConfig() (err error) { } } - defaultSettings(&config) return }