1
0
mirror of https://github.com/go-task/task.git synced 2025-07-15 01:35:00 +02:00

refactor: don't need to run template on Executor.Dir

This commit is contained in:
Andrey Nering
2017-07-08 15:01:45 -03:00
parent 082fa321cb
commit 6e880c9027

View File

@ -297,16 +297,12 @@ func (e *Executor) runCommand(ctx context.Context, call Call, i int) error {
func (e *Executor) getTaskDir(call Call) (string, error) {
t := e.Tasks[call.Task]
exeDir, err := e.ReplaceVariables(e.Dir, call)
if err != nil {
return "", err
}
taskDir, err := e.ReplaceVariables(t.Dir, call)
if err != nil {
return "", err
}
return filepath.Join(exeDir, taskDir), nil
return filepath.Join(e.Dir, taskDir), nil
}
func (e *Executor) getEnviron(call Call) ([]string, error) {