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:
Erik Wilson 2019-02-25 10:36:32 -07:00 committed by Darren Shepherd
parent 5ea5255062
commit 91251aadaa

View File

@ -114,7 +114,7 @@ func extract(dataDir string) (string, error) {
asset, dir = getAssetAndDir(dataDir) asset, dir = getAssetAndDir(dataDir)
if _, err := os.Stat(dir); err == nil { if _, err := os.Stat(dir); err == nil {
logrus.Debugf("Asset dir %s", dir) logrus.Debugf("Asset dir %s", dir)
return "", nil return dir, nil
} }
logrus.Infof("Preparing data dir %s", dir) logrus.Infof("Preparing data dir %s", dir)