Skip to content

Commit

Permalink
undoes the interactivity hack
Browse files Browse the repository at this point in the history
  • Loading branch information
mhausenblas committed Feb 6, 2018
1 parent 2b0e318 commit 041ea90
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions shelling.go
Expand Up @@ -216,9 +216,8 @@ func kubectlbg(cmd string, args ...string) error {
func shellout(withstderr bool, cmd string, args ...string) (string, error) {
result := ""
var out bytes.Buffer
all := cmd + " " + strings.Join(args, " ")
debug(all)
c := exec.Command("bash", "-c", all)
debug(cmd + " " + strings.Join(args, " "))
c := exec.Command(cmd, args...)
c.Env = os.Environ()
if withstderr {
c.Stderr = os.Stderr
Expand Down

0 comments on commit 041ea90

Please sign in to comment.