fixed custom config and data paths

any specified custom data path was only being used for the config file.
All combinations of options should work together now.
This commit is contained in:
Harvey Tindall 2020-08-16 14:26:07 +01:00
parent bd8af153a9
commit 6436dba48f
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
1 changed files with 3 additions and 1 deletions

View File

@ -113,7 +113,9 @@ func main() {
flag.Parse()
if app.config_path == *configPath && app.data_path != *dataPath {
app.config_path = filepath.Join(*dataPath, "config.ini")
app.data_path = *dataPath
} else if app.config_path != *configPath && app.data_path == *dataPath {
app.config_path = *configPath
} else {
app.config_path = *configPath
app.data_path = *dataPath