fix: fix finding bin file in the cache

This commit is contained in:
Amin Yahyaabadi 2021-11-21 14:05:50 -06:00
parent ec22e0200a
commit 96346084ca
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ export async function setupBin(
if (dir) {
const installDir = join(dir, extractedFolderName)
const binDir = join(installDir, binRelativeDir)
if (existsSync(binDir) && existsSync(join(binRelativeDir, binFileName))) {
if (existsSync(binDir) && existsSync(join(binDir, binFileName))) {
info(`${name} ${version} was found in the cache.`)
addPath(binDir)
return { installDir, binDir }