1
0
mirror of https://github.com/go-task/task.git synced 2025-01-26 05:27:15 +02:00

Merge pull request #12 from zbindenren/fix-trailing-whitespace

fix trailing white space for set instruction
This commit is contained in:
Sascha Andres 2017-03-07 08:56:24 +01:00 committed by GitHub
commit f686c7598f

View File

@ -6,6 +6,7 @@ import (
"log"
"os"
"os/exec"
"strings"
"github.com/BurntSushi/toml"
"github.com/spf13/pflag"
@ -158,7 +159,7 @@ func (t *Task) runCommand(i int) error {
if err != nil {
return err
}
os.Setenv(t.Set, string(bytes))
os.Setenv(t.Set, strings.TrimSpace(string(bytes)))
return nil
}
cmd.Stdout = os.Stdout