diff --git a/dist/index.js b/dist/index.js index d5ea5ce..64aed12 100644 --- a/dist/index.js +++ b/dist/index.js @@ -59271,7 +59271,7 @@ function addVCVARSEnv() { function renameSystem32Dlls() { const sys32 = 'C:\\Windows\\System32\\' const badFiles = [`${sys32}libcrypto-1_1-x64.dll`, `${sys32}libssl-1_1-x64.dll`] - const existing = badFiles.map((dll) => fs.existsSync(dll)) + const existing = badFiles.filter((dll) => fs.existsSync(dll)) console.log(`Renaming ${existing.join(' and ')} to avoid dll resolution conflicts on Ruby <= 2.4`) existing.forEach(dll => fs.renameSync(dll, `${dll}_`)) } diff --git a/windows.js b/windows.js index 9171bf5..3c11e69 100644 --- a/windows.js +++ b/windows.js @@ -242,7 +242,7 @@ export function addVCVARSEnv() { function renameSystem32Dlls() { const sys32 = 'C:\\Windows\\System32\\' const badFiles = [`${sys32}libcrypto-1_1-x64.dll`, `${sys32}libssl-1_1-x64.dll`] - const existing = badFiles.map((dll) => fs.existsSync(dll)) + const existing = badFiles.filter((dll) => fs.existsSync(dll)) console.log(`Renaming ${existing.join(' and ')} to avoid dll resolution conflicts on Ruby <= 2.4`) existing.forEach(dll => fs.renameSync(dll, `${dll}_`)) }