From 2bc023b7e03d70554f75137439566029377df105 Mon Sep 17 00:00:00 2001 From: suzumi49n Date: Sun, 22 Jul 2018 15:46:49 +0900 Subject: [PATCH] Fix/args config path (#91) * fix args config path * update version --- VERSION | 2 +- cli/server/server.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 616c0bf9c..541e90a8e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.44.6 +0.44.7 diff --git a/cli/server/server.go b/cli/server/server.go index f10b81878..20d71141f 100644 --- a/cli/server/server.go +++ b/cli/server/server.go @@ -41,7 +41,9 @@ func startServer(ctx *cli.Context) error { } configPath := "./config" - configPath = ctx.String("config-path") + if argCp := ctx.String("config-path"); argCp != "" { + configPath = argCp + } cfg, err := config.Load(configPath, net) if err != nil { return cli.NewExitError(err, 1)