fix: Relative path in KUBECONFIG envvar (#237)

Resolves #173
This commit is contained in:
KUOKA Yusuke 2018-08-27 22:53:17 +09:00 committed by GitHub
parent 543a653864
commit fcbd6aff29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -1,8 +1,6 @@
package helmexec
import (
"io/ioutil"
"os"
"os/exec"
)
@ -21,13 +19,6 @@ type ShellRunner struct{}
// Execute a shell command
func (shell ShellRunner) Execute(cmd string, args []string) ([]byte, error) {
dir, err := ioutil.TempDir("", tmpPrefix+cmd+tmpSuffix)
if err != nil {
return nil, err
}
defer os.RemoveAll(dir)
preparedCmd := exec.Command(cmd, args...)
preparedCmd.Dir = dir
return preparedCmd.CombinedOutput()
}