Skip to content

Commit 3d3269c

Browse files
committed
Fix FreeImage source patch idempotence
1 parent f132fe7 commit 3d3269c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/source-patches.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const patchFile = async (path, replacements) => {
88
const original = await readFile(path, 'utf8');
99
let updated = original;
1010
for (const [from, to] of replacements) {
11-
if (!updated.includes(to)) {
11+
if (updated.includes(from)) {
1212
updated = updated.replace(from, to);
1313
}
1414
}

0 commit comments

Comments
 (0)