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:
14
variables.go
14
variables.go
@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user