1
0
mirror of https://github.com/go-task/task.git synced 2024-12-14 10:52:43 +02:00

Add CHANGELOG and minor changes to #613

This commit is contained in:
Andrey Nering 2021-11-28 15:54:49 -03:00
parent 846c27d579
commit 01c86636e9
2 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,8 @@
## Unreleased
- Quote each `{{.CLI_ARGS}}` argument to prevent one with spaces to become many
([#613](https://github.com/go-task/task/pull/613)).
- Fix nil pointer when `cmd:` was left empty
([#612](https://github.com/go-task/task/issues/612), [#614](https://github.com/go-task/task/pull/614)).
- Upgrade [mvdan/sh](https://github.com/mvdan/sh) which contains two

View File

@ -206,11 +206,11 @@ func getArgs() ([]string, string, error) {
return args, "", nil
}
quotedCliArgs := []string{}
var quotedCliArgs []string
for _, arg := range args[doubleDashPos:] {
quotedCliArg, err := syntax.Quote(arg, syntax.LangBash)
if err != nil {
return []string{}, "", err
return nil, "", err
}
quotedCliArgs = append(quotedCliArgs, quotedCliArg)
}