Merge pull request #6790 from CormickKneey/master
🐛 return error if tempconfig missing
This commit is contained in:
commit
22b013b2a6
1 changed files with 3 additions and 0 deletions
|
@ -1096,6 +1096,9 @@ func cleanTempNginxCfg() error {
|
||||||
var files []string
|
var files []string
|
||||||
|
|
||||||
err := filepath.Walk(os.TempDir(), func(path string, info os.FileInfo, err error) error {
|
err := filepath.Walk(os.TempDir(), func(path string, info os.FileInfo, err error) error {
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
if info.IsDir() && os.TempDir() != path {
|
if info.IsDir() && os.TempDir() != path {
|
||||||
return filepath.SkipDir
|
return filepath.SkipDir
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue