core: fix patch

This commit is contained in:
undefined committed 2023-12-15 12:35:15 +08:00
1 parent fdb668003b
commit d970a1e0f8
1 file changed
+1 -1
+1 -1
View File
@@ -25,7 +25,7 @@ export function register(cli: CAC) {
}
await fs.writeFile(patch, res.body);
child.execSync(`patch ${mod} -o ${mod}.tmp < ${patch}`);
await fs.move(`${mod}.tmp`, mod);
await fs.move(`${mod}.tmp`, mod, { overwrite: true });
logger.info('Patched %s', mod);
});