start fixed with no config

This commit is contained in:
asoseil 2018-02-18 19:36:50 +01:00
parent 153ea7defa
commit 600b1ac467
1 changed files with 6 additions and 9 deletions

View File

@ -1128,10 +1128,7 @@ func start(c *cli.Context) (err error) {
// check no-config and read
if !c.Bool("no-config") {
// read a config if exist
err := r.Settings.Read(&r)
if err != nil{
return err
}
r.Settings.Read(&r)
if c.String("name") != "" {
// filter by name flag if exist
r.Schema.Projects = r.Schema.Filter("Name", c.String("name"))