Commit c675449a by Leonard Gram Committed by GitHub

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

parent 9b5890cc
...@@ -45,12 +45,13 @@ func tryGetRootForDevEnvironment() (string, bool) { ...@@ -45,12 +45,13 @@ func tryGetRootForDevEnvironment() (string, bool) {
return "", false 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 { if err != nil {
return "", false return "", false
} }
return rootPath, true return rootPath, true
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment