mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01: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));
|
filesToRemove.push(path.join(cwd, item));
|
||||||
}
|
}
|
||||||
: (cwd: string, item: string, keepSource = true) => {
|
: (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));
|
if (!keepSource) fs.removeSync(path.join(cwd, item));
|
||||||
};
|
};
|
||||||
addFile(dir, 'dump', false);
|
addFile(dir, 'dump', false);
|
||||||
|
|||||||
Reference in new issue
Block a user