This commit is contained in:
asoseil 2018-01-10 10:52:32 +01:00
parent ecaebf0867
commit d21a55785e
1 changed files with 1 additions and 1 deletions

View File

@ -572,7 +572,7 @@ func (p *Project) run(path string, stream chan Response, stop <-chan bool) (err
name := filepath.Base(path) name := filepath.Base(path)
if path == "." && p.Tools.Run.Dir == "" { if path == "." && p.Tools.Run.Dir == "" {
name = filepath.Base(Wdir()) name = filepath.Base(Wdir())
} else { } else if p.Tools.Run.Dir != ""{
name = filepath.Base(dirPath) name = filepath.Base(dirPath)
} }
path = filepath.Join(dirPath, name) path = filepath.Join(dirPath, name)