mirror of
https://github.com/go-task/task.git
synced 2025-07-13 01:30:33 +02:00
Move directory creation
This commit is contained in:
5
task.go
5
task.go
@ -168,6 +168,11 @@ func (e *Executor) splitRegularAndWatchCalls(calls ...*ast.Call) (regularCalls [
|
|||||||
// RunTask runs a task by its name
|
// RunTask runs a task by its name
|
||||||
func (e *Executor) RunTask(ctx context.Context, call *ast.Call) error {
|
func (e *Executor) RunTask(ctx context.Context, call *ast.Call) error {
|
||||||
t, err := e.FastCompiledTask(call)
|
t, err := e.FastCompiledTask(call)
|
||||||
|
|
||||||
|
if err := e.mkdir(t); err != nil {
|
||||||
|
e.Logger.Errf(logger.Red, "task: cannot make directory %q: %v\n", t.Dir, err)
|
||||||
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user