mirror of
https://github.com/go-task/task.git
synced 2025-01-04 03:48:02 +02:00
fix: dynamic variable output in verbose mode (#1921)
Co-authored-by: Matthew Bowman <mbowman@nvidia.com>
This commit is contained in:
parent
32fa3a0156
commit
2b54b04cfc
@ -170,7 +170,7 @@ func (c *Compiler) HandleDynamicVar(v ast.Var, dir string) (string, error) {
|
|||||||
result = strings.TrimSuffix(result, "\n")
|
result = strings.TrimSuffix(result, "\n")
|
||||||
|
|
||||||
c.dynamicCache[*v.Sh] = result
|
c.dynamicCache[*v.Sh] = result
|
||||||
c.Logger.VerboseErrf(logger.Magenta, "task: dynamic variable: %q result: %q\n", v.Sh, result)
|
c.Logger.VerboseErrf(logger.Magenta, "task: dynamic variable: %q result: %q\n", *v.Sh, result)
|
||||||
|
|
||||||
return result, nil
|
return result, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user