Merge pull request #1578 from Zillode/fix-config-windows

Expand locations during initialisation (fixes #1575).
This commit is contained in:
Jakob Borg
2015-04-03 22:04:08 +02:00

View File

@@ -235,6 +235,10 @@ func main() {
baseDirs["config"] = confDir
}
if err := expandLocations(); err != nil {
l.Fatalln(err)
}
if runtime.GOOS == "windows" {
if logFile == "" {
// Use the default log file location
@@ -245,10 +249,6 @@ func main() {
}
}
if err := expandLocations(); err != nil {
l.Fatalln(err)
}
if showVersion {
fmt.Println(LongVersion)
return