fix: workdir loop

This commit is contained in:
deepzz0
2021-05-08 11:19:31 +08:00
parent c18f3b7da9
commit 2b277bd901

View File

@@ -19,7 +19,8 @@ var workDir = func() string {
name := filepath.Join(wd, "conf")
_, err := os.Stat(name)
if err != nil {
wd, _ = path.Split(wd)
dir, _ := path.Split(wd)
wd = path.Clean(dir)
continue
}
return wd