#148 workaround fixed
This commit is contained in:
parent
b9efc9d317
commit
930f2a3562
|
@ -575,8 +575,10 @@ func (p *Project) run(path string, stream chan Response, stop <-chan bool) (err
|
|||
dirPath, _ = filepath.Abs(p.Tools.Run.Dir)
|
||||
}
|
||||
name := filepath.Base(path)
|
||||
if path == "." {
|
||||
if path == "." && p.Tools.Run.Dir == "" {
|
||||
name = filepath.Base(Wdir())
|
||||
}else{
|
||||
name = filepath.Base(dirPath)
|
||||
}
|
||||
path = filepath.Join(dirPath, name)
|
||||
if _, err := os.Stat(path); err == nil {
|
||||
|
|
Loading…
Reference in New Issue