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
+3 -2
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
}