mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: backup: use grow mode (close #1090)
This commit is contained in:
1 file changed
+1
-1
@@ -73,7 +73,7 @@ export function register(cli: CAC) {
|
||||
filesToRemove.push(path.join(cwd, item));
|
||||
}
|
||||
: (cwd: string, item: string, keepSource = true) => {
|
||||
exec('zip', ['-r', target, item], { cwd, stdio: 'inherit' });
|
||||
exec('zip', ['-gr', target, item], { cwd, stdio: 'inherit' });
|
||||
if (!keepSource) fs.removeSync(path.join(cwd, item));
|
||||
};
|
||||
addFile(dir, 'dump', false);
|
||||
|
||||
Reference in new issue
Block a user