mirror of
https://github.com/go-task/task.git
synced 2025-06-02 23:27:37 +02:00
Changed to be quiet when a variable is set
This commit is contained in:
parent
a9181255b8
commit
e6bb0cfc6d
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 {
|
||||
return &taskRunError{name, err}
|
||||
}
|
||||
fmt.Println(output)
|
||||
if t.Set != "" {
|
||||
os.Setenv(t.Set, output)
|
||||
} else {
|
||||
fmt.Println(output)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user