mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-08 14:58:26 +00:00
Expand locations during initialisation (fixes #1575).
This commit is contained in:
parent
65923b5c20
commit
19dfa88258
@ -235,6 +235,10 @@ func main() {
|
|||||||
baseDirs["config"] = confDir
|
baseDirs["config"] = confDir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := expandLocations(); err != nil {
|
||||||
|
l.Fatalln(err)
|
||||||
|
}
|
||||||
|
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
if logFile == "" {
|
if logFile == "" {
|
||||||
// Use the default log file location
|
// Use the default log file location
|
||||||
@ -245,10 +249,6 @@ func main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := expandLocations(); err != nil {
|
|
||||||
l.Fatalln(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
if showVersion {
|
if showVersion {
|
||||||
fmt.Println(LongVersion)
|
fmt.Println(LongVersion)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user