fix(helm): home env not set on Windows

When setting $HELM_HOME, only $HOME was considered. This variable is not always present on Windows.
pull/3024/head
Pietro Menna 7 years ago
parent fab6d2ff83
commit ece9486182
No known key found for this signature in database
GPG Key ID: BB89823FE8539BC1

@ -28,11 +28,12 @@ import (
"github.com/spf13/pflag"
"k8s.io/client-go/util/homedir"
"k8s.io/helm/pkg/helm/helmpath"
)
// DefaultHelmHome is the default HELM_HOME.
var DefaultHelmHome = filepath.Join("$HOME", ".helm")
var DefaultHelmHome = filepath.Join(homedir.HomeDir(), ".helm")
// EnvSettings describes all of the environment settings.
type EnvSettings struct {

Loading…
Cancel
Save