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:
parent
846c27d579
commit
01c86636e9
@ -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
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user