cli: fix for recognizing when in dev mode. (#18334)

This commit is contained in:
Leonard Gram 2019-08-02 09:38:41 +02:00 committed by GitHub
parent 9b5890cc62
commit c675449aa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -45,12 +45,13 @@ func tryGetRootForDevEnvironment() (string, bool) {
return "", false
}
defaultsPath := filepath.Join(rootPath, "conf/defaults.ini")
devenvPath := filepath.Join(rootPath, "devenv")
_, err = os.Stat(defaultsPath)
_, err = os.Stat(devenvPath)
if err != nil {
return "", false
}
return rootPath, true
}