Skip to content

Commit

Permalink
Stop to give nil as parameter to RawSource. use ioutil.Discard
Browse files Browse the repository at this point in the history
  • Loading branch information
hymkor committed Oct 20, 2018
1 parent f40322f commit d549f47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shell/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"os/exec"
"reflect"
Expand Down Expand Up @@ -225,7 +226,7 @@ func (cmd *Cmd) spawnvpSilent(ctx context.Context) (int, error) {
args[i] = rawargs[i]
}
// Batch files
return RawSource(args, nil, false, cmd.Stdin, cmd.Stdout, cmd.Stderr)
return RawSource(args, ioutil.Discard, false, cmd.Stdin, cmd.Stdout, cmd.Stderr)
}
}
// Do not use exec.CommandContext because it cancels background process.
Expand Down

0 comments on commit d549f47

Please sign in to comment.