Fix/args config path (#91)

* fix args config path

* update version
This commit is contained in:
suzumi49n 2018-07-22 15:46:49 +09:00 committed by Anthony De Meulemeester
parent 311313f2ff
commit 2bc023b7e0
2 changed files with 4 additions and 2 deletions

View file

@ -1 +1 @@
0.44.6 0.44.7

View file

@ -41,7 +41,9 @@ func startServer(ctx *cli.Context) error {
} }
configPath := "./config" configPath := "./config"
configPath = ctx.String("config-path") if argCp := ctx.String("config-path"); argCp != "" {
configPath = argCp
}
cfg, err := config.Load(configPath, net) cfg, err := config.Load(configPath, net)
if err != nil { if err != nil {
return cli.NewExitError(err, 1) return cli.NewExitError(err, 1)