mirror of
https://github.com/go-task/task.git
synced 2025-11-25 22:32:55 +02:00
Changed to be quiet when a variable is set
This commit is contained in:
3
task.go
3
task.go
@@ -111,9 +111,10 @@ func RunTask(name string) error {
|
|||||||
if output, err = runCommand(ReplaceVariables(c, vars), ReplaceVariables(t.Dir, vars)); err != nil {
|
if output, err = runCommand(ReplaceVariables(c, vars), ReplaceVariables(t.Dir, vars)); err != nil {
|
||||||
return &taskRunError{name, err}
|
return &taskRunError{name, err}
|
||||||
}
|
}
|
||||||
fmt.Println(output)
|
|
||||||
if t.Set != "" {
|
if t.Set != "" {
|
||||||
os.Setenv(t.Set, output)
|
os.Setenv(t.Set, output)
|
||||||
|
} else {
|
||||||
|
fmt.Println(output)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user