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:
commit
f686c7598f
3
task.go
3
task.go
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user