1
0
mirror of https://github.com/go-task/task.git synced 2025-01-20 04:59:37 +02:00

fix: Create dir before dynamic variable evaluation

This commit is contained in:
Wolf Mermelstein 2024-09-30 17:49:30 -04:00
parent 52014cd76e
commit fdc619fd63

View File

@ -250,10 +250,6 @@ func (e *Executor) RunTask(ctx context.Context, call *ast.Call) error {
}
}
if err := e.mkdir(t); err != nil {
e.Logger.Errf(logger.Red, "task: cannot make directory %q: %v\n", t.Dir, err)
}
var deferredExitCode uint8
for i := range t.Cmds {