mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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);
|
await fs.writeFile(patch, res.body);
|
||||||
child.execSync(`patch ${mod} -o ${mod}.tmp < ${patch}`);
|
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);
|
logger.info('Patched %s', mod);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user