fix: add the correct cache to the path

This commit is contained in:
Amin Yahyaabadi 2021-09-16 14:40:29 -05:00
parent 0705a52b46
commit 5e61cbc438
1 changed files with 3 additions and 3 deletions

View File

@ -48,10 +48,10 @@ export async function setupBin(
const dir = find(name, version)
if (dir) {
info(`${name} ${version} was found in the cache.`)
addPath(dir)
const installDir = join(dir, extractedFolderName)
return { installDir, binDir: join(installDir, binRelativeDir) }
const binDir = join(installDir, binRelativeDir)
addPath(binDir)
return { installDir, binDir }
}
// Get an unique output directory name from the URL.