mirror of
https://github.com/go-task/task.git
synced 2025-12-16 11:47:44 +01:00
@@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
- Fixed bug where, on Windows, variables were ending with `\r` because we were
|
||||||
|
only removing the final `\n` but not `\r\n`
|
||||||
|
([#717](https://github.com/go-task/task/issues/717)).
|
||||||
|
|
||||||
## v3.12.0 - 2022-03-31
|
## v3.12.0 - 2022-03-31
|
||||||
|
|
||||||
- The `--list` and `--list-all` flags can now be combined with the `--silent`
|
- The `--list` and `--list-all` flags can now be combined with the `--silent`
|
||||||
|
|||||||
@@ -151,7 +151,8 @@ func (c *CompilerV3) HandleDynamicVar(v taskfile.Var, dir string) (string, error
|
|||||||
|
|
||||||
// Trim a single trailing newline from the result to make most command
|
// Trim a single trailing newline from the result to make most command
|
||||||
// output easier to use in shell commands.
|
// output easier to use in shell commands.
|
||||||
result := strings.TrimSuffix(stdout.String(), "\n")
|
result := strings.TrimSuffix(stdout.String(), "\r\n")
|
||||||
|
result = strings.TrimSuffix(result, "\n")
|
||||||
|
|
||||||
c.dynamicCache[v.Sh] = result
|
c.dynamicCache[v.Sh] = result
|
||||||
c.Logger.VerboseErrf(logger.Magenta, `task: dynamic variable: '%s' result: '%s'`, v.Sh, result)
|
c.Logger.VerboseErrf(logger.Magenta, `task: dynamic variable: '%s' result: '%s'`, v.Sh, result)
|
||||||
|
|||||||
Reference in New Issue
Block a user