Skip to content

Commit 238b81e

Browse files
committed
Only log if changing something
1 parent 8f312ef commit 238b81e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

dist/index.js

+4-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

windows.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,10 @@ function renameSystem32Dlls() {
243243
const sys32 = 'C:\\Windows\\System32\\'
244244
const badFiles = [`${sys32}libcrypto-1_1-x64.dll`, `${sys32}libssl-1_1-x64.dll`]
245245
const existing = badFiles.filter((dll) => fs.existsSync(dll))
246-
console.log(`Renaming ${existing.join(' and ')} to avoid dll resolution conflicts on Ruby <= 2.4`)
247-
existing.forEach(dll => fs.renameSync(dll, `${dll}_`))
246+
if (existing.length > 0) {
247+
console.log(`Renaming ${existing.join(' and ')} to avoid dll resolution conflicts on Ruby <= 2.4`)
248+
existing.forEach(dll => fs.renameSync(dll, `${dll}_`))
249+
}
248250
}
249251

250252
// Sets MSYS2 ENV variables set from running `ridk enable`

0 commit comments

Comments
 (0)