From 6436dba48f5a3297c44407501b7ab6247fd00fd6 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sun, 16 Aug 2020 14:26:07 +0100 Subject: [PATCH] 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. --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index b9af73c..c74bb67 100644 --- a/main.go +++ b/main.go @@ -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