mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
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.
This commit is contained in:
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
Block a user