|
@@ -16,7 +16,7 @@ func ZipDir(src string, dest string, dirs []string) error {
|
|
// 创建 zip 命令参数
|
|
// 创建 zip 命令参数
|
|
args := []string{"-r", dest}
|
|
args := []string{"-r", dest}
|
|
for _, dir := range dirs {
|
|
for _, dir := range dirs {
|
|
- args = append(args, src+dir)
|
|
|
|
|
|
+ args = append(args, dir)
|
|
}
|
|
}
|
|
|
|
|
|
// 创建 zip 命令
|
|
// 创建 zip 命令
|