1
0
mirror of https://github.com/go-task/task.git synced 2025-06-15 00:15:10 +02:00

Remove ignore_errors

This commit is contained in:
Stephen Prater
2019-05-28 13:02:59 -07:00
parent 659cae6a4c
commit 044d3a0ff9
7 changed files with 39 additions and 95 deletions

View File

@ -83,13 +83,13 @@ func (e *Executor) CompiledTask(call taskfile.Call) (*taskfile.Task, error) {
}
}
}
if len(origTask.Precondition) > 0 {
new.Precondition = make([]*taskfile.Precondition, len(origTask.Precondition))
for i, precond := range origTask.Precondition {
new.Precondition[i] = &taskfile.Precondition{
Sh: r.Replace(precond.Sh),
Msg: r.Replace(precond.Msg),
IgnoreError: precond.IgnoreError,
if len(origTask.Preconditions) > 0 {
new.Preconditions = make([]*taskfile.Precondition, len(origTask.Preconditions))
for i, precond := range origTask.Preconditions {
new.Preconditions[i] = &taskfile.Precondition{
Sh: r.Replace(precond.Sh),
Msg: r.Replace(precond.Msg),
}
}
}