1
0
mirror of https://github.com/go-task/task.git synced 2025-05-13 22:16:31 +02:00

fix(expand): return nothing if there are no matches

This commit is contained in:
Andrey Nering 2025-05-09 15:55:52 -03:00
parent fb68a5f79a
commit da4ce5b0a5

View File

@ -128,6 +128,7 @@ func ExpandFields(s string) ([]string, error) {
Env: expand.FuncEnviron(os.Getenv),
ReadDir2: os.ReadDir,
GlobStar: true,
NullGlob: true,
}
return expand.Fields(cfg, words...)
}