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:
6
task.go
6
task.go
@ -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) {
|
||||
|
Reference in New Issue
Block a user