Merge pull request #155 from tockins/dev

bug fix
This commit is contained in:
Alessio Pracchia 2018-01-10 11:09:45 +01:00 committed by GitHub
commit de37b00fcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ var (
// RPrefix tool name
RPrefix = "realize"
// RVersion current version
RVersion = "2.0"
RVersion = "2.0.1"
// RExt file extension
RExt = ".yaml"
// RFile config file name

View File

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