Browse Source

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
Erik Wilson 6 years ago committed by Darren Shepherd
parent
commit
91251aadaa
  1. 2
      cmd/k3s/main.go

2
cmd/k3s/main.go

@ -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…
Cancel
Save