From 8f312efe1262fb463d906e9bf040319394c18d3e Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 13 Jan 2022 19:40:03 +0100 Subject: [PATCH] Fix typo --- dist/index.js | 2 +- windows.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}_`)) }