mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: fix patch
This commit is contained in:
1 file changed
+1
-1
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user