2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 07:57:21 +08:00

fix: test

This commit is contained in:
耗子
2024-10-28 01:22:56 +08:00
parent 5921a88c75
commit 2d7faaa653

View File

@@ -2,6 +2,7 @@ package io
import (
"errors"
"github.com/go-rat/utils/debug"
"os/exec"
"path/filepath"
"strings"
@@ -59,7 +60,10 @@ func Compress(dir string, src []string, dst string) error {
return errors.New("unsupported format")
}
return cmd.Run()
out, err := cmd.CombinedOutput()
debug.Dump(string(out))
return err
}
// UnCompress 解压文件