mirror of https://github.com/aminya/setup-cpp
fix: fix finding bin file in the cache
This commit is contained in:
parent
ec22e0200a
commit
96346084ca
|
@ -58,7 +58,7 @@ export async function setupBin(
|
||||||
if (dir) {
|
if (dir) {
|
||||||
const installDir = join(dir, extractedFolderName)
|
const installDir = join(dir, extractedFolderName)
|
||||||
const binDir = join(installDir, binRelativeDir)
|
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.`)
|
info(`${name} ${version} was found in the cache.`)
|
||||||
addPath(binDir)
|
addPath(binDir)
|
||||||
return { installDir, binDir }
|
return { installDir, binDir }
|
||||||
|
|
Loading…
Reference in New Issue