Skip to content

Commit ee4e376

Browse files
author
gentele
committed
fix issue with helm repo file
1 parent e1941a9 commit ee4e376

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/devspace/helm/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ func createNewClient(kubectlClient *kubernetes.Clientset, log log.Logger, upgrad
132132
os.MkdirAll(repoPath, os.ModePerm)
133133
os.MkdirAll(filepath.Dir(stableRepoCachePathAbs), os.ModePerm)
134134

135-
_, repoFileNotFound := os.Stat(repoFile)
136-
if repoFileNotFound != nil {
135+
repoFileStat, repoFileNotFound := os.Stat(repoFile)
136+
if repoFileNotFound != nil || repoFileStat.Size() == 0 {
137137
err = fsutil.WriteToFile([]byte(defaultRepositories), repoFile)
138138
if err != nil {
139139
return nil, err

0 commit comments

Comments
 (0)