From 91251aadaabda32d9db47b9ad2bc261fe24dd11b Mon Sep 17 00:00:00 2001 From: Erik Wilson Date: Mon, 25 Feb 2019 10:36:32 -0700 Subject: [PATCH] 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. --- cmd/k3s/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/k3s/main.go b/cmd/k3s/main.go index 919778f5a6..ea615b7114 100644 --- a/cmd/k3s/main.go +++ b/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)