mirror of
https://github.com/go-task/task.git
synced 2026-07-07 14:09:11 +00:00
wip
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
||||
var ErrPreconditionFailed = errors.New("task: precondition not met")
|
||||
|
||||
func (e *Executor) areTaskPreconditionsMet(ctx context.Context, t *ast.Task) (bool, error) {
|
||||
for _, p := range t.Preconditions {
|
||||
for _, p := range append(t.Preconditions, e.Taskfile.Preconditions.Preconditions...) {
|
||||
err := execext.RunCommand(ctx, &execext.RunCommandOptions{
|
||||
Command: p.Sh,
|
||||
Dir: t.Dir,
|
||||
|
||||
Reference in New Issue
Block a user