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

fix: dynamic variable output in verbose mode (#1921)

Co-authored-by: Matthew Bowman <mbowman@nvidia.com>
This commit is contained in:
mgbowman 2024-12-07 16:05:53 +01:00 committed by GitHub
parent 32fa3a0156
commit 2b54b04cfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,7 +170,7 @@ func (c *Compiler) HandleDynamicVar(v ast.Var, dir string) (string, error) {
result = strings.TrimSuffix(result, "\n")
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
}