Skip to content

Commit 6e880c9

Browse files
committed
refactor: don't need to run template on Executor.Dir
1 parent 082fa32 commit 6e880c9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

task.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,16 +297,12 @@ func (e *Executor) runCommand(ctx context.Context, call Call, i int) error {
297297
func (e *Executor) getTaskDir(call Call) (string, error) {
298298
t := e.Tasks[call.Task]
299299

300-
exeDir, err := e.ReplaceVariables(e.Dir, call)
301-
if err != nil {
302-
return "", err
303-
}
304300
taskDir, err := e.ReplaceVariables(t.Dir, call)
305301
if err != nil {
306302
return "", err
307303
}
308304

309-
return filepath.Join(exeDir, taskDir), nil
305+
return filepath.Join(e.Dir, taskDir), nil
310306
}
311307

312308
func (e *Executor) getEnviron(call Call) ([]string, error) {

0 commit comments

Comments
 (0)