1
0
mirror of https://github.com/go-task/task.git synced 2025-08-10 22:42:19 +02:00

chore: sources instead of source

This commit is contained in:
Pete Davison
2023-06-27 14:14:29 +00:00
committed by Andrey Nering
parent 36565bbbd2
commit 6be3ff6141
3 changed files with 10 additions and 10 deletions

View File

@@ -126,12 +126,12 @@ func (e *Executor) compiledTask(call taskfile.Call, evaluateShVars bool) (*taskf
}
if cmd.For != nil {
var list []string
// Get the list from the explicit forh list
// Get the list from the explicit for list
if cmd.For.List != nil && len(cmd.For.List) > 0 {
list = cmd.For.List
}
// Get the list from the task sources
if cmd.For.From == "source" {
if cmd.For.From == "sources" {
list, err = fingerprint.Globs(new.Dir, new.Sources)
if err != nil {
return nil, err