mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-23 06:32:28 +08:00
fix: workdir loop
This commit is contained in:
@@ -19,7 +19,8 @@ var workDir = func() string {
|
|||||||
name := filepath.Join(wd, "conf")
|
name := filepath.Join(wd, "conf")
|
||||||
_, err := os.Stat(name)
|
_, err := os.Stat(name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
wd, _ = path.Split(wd)
|
dir, _ := path.Split(wd)
|
||||||
|
wd = path.Clean(dir)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
return wd
|
return wd
|
||||||
|
|||||||
Reference in New Issue
Block a user