Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit f8654eb

Browse files
committed
修复 错误的传参
1 parent 0fd346c commit f8654eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/compress.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ async function linuxUnzip(sourceZip: string, destDir: string) {
129129
// zip -r a.zip css css_v1 js
130130
async function linuxZip(sourceZip: string, files: string[]) {
131131
return new Promise((resolve, reject) => {
132-
const p = ["-r", sourceZip];
133-
p.concat(files);
132+
let p = ["-r", sourceZip];
133+
p = p.concat(files);
134134
console.log("linuxZip:", p);
135135
const process = child_process.spawn("zip", p, {
136136
cwd: path.normalize(path.dirname(sourceZip))

0 commit comments

Comments
 (0)