mirror of https://github.com/k3s-io/k3s
Fix asset lookup of HOME directory
Return the directory name if assets are located in HOME, so we can properly set the PATH for binary lookup.pull/44/head v0.1.0
parent
5ea5255062
commit
91251aadaa
|
@ -114,7 +114,7 @@ func extract(dataDir string) (string, error) {
|
|||
asset, dir = getAssetAndDir(dataDir)
|
||||
if _, err := os.Stat(dir); err == nil {
|
||||
logrus.Debugf("Asset dir %s", dir)
|
||||
return "", nil
|
||||
return dir, nil
|
||||
}
|
||||
|
||||
logrus.Infof("Preparing data dir %s", dir)
|
||||
|
|
Loading…
Reference in New Issue