mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-23 01:20:11 +00:00
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:
parent
bd8af153a9
commit
6436dba48f
4
main.go
4
main.go
@ -113,7 +113,9 @@ func main() {
|
|||||||
|
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
if app.config_path == *configPath && app.data_path != *dataPath {
|
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 {
|
} else {
|
||||||
app.config_path = *configPath
|
app.config_path = *configPath
|
||||||
app.data_path = *dataPath
|
app.data_path = *dataPath
|
||||||
|
Loading…
Reference in New Issue
Block a user