1
0
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:
Sascha Andres 2017-03-05 10:07:08 +01:00
parent a9181255b8
commit e6bb0cfc6d
2 changed files with 2 additions and 1 deletions

View File

@ -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