Skip to content

Commit

Permalink
Fix asset lookup of HOME directory
Browse files Browse the repository at this point in the history
Return the directory name if assets are located in HOME, so we can
properly set the PATH for binary lookup.
  • Loading branch information
erikwilson authored and ibuildthecloud committed Feb 25, 2019
1 parent 5ea5255 commit 91251aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/k3s/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 91251aa

Please sign in to comment.