From f910c53f0f3e4012fbf4a8f707c623b01ec5bf95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Mon, 28 Oct 2024 01:22:56 +0800 Subject: [PATCH] fix: test --- pkg/io/compress.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/io/compress.go b/pkg/io/compress.go index bf08b8e8eb..93b7857f42 100644 --- a/pkg/io/compress.go +++ b/pkg/io/compress.go @@ -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 解压文件