From 5e61cbc438c42442b16a3958b8e821c54ed70595 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Thu, 16 Sep 2021 14:40:29 -0500 Subject: [PATCH] fix: add the correct cache to the path --- src/utils/setup/setupBin.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/setup/setupBin.ts b/src/utils/setup/setupBin.ts index 2d881143..0c9be955 100644 --- a/src/utils/setup/setupBin.ts +++ b/src/utils/setup/setupBin.ts @@ -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.