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 2019-02-25 10:36:32 -07:00 committed by Darren Shepherd
parent 5ea5255062
commit 91251aadaa
1 changed files with 1 additions and 1 deletions

View File

@ -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)