Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 27, 2024
1 parent c87670c commit f910c53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/io/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package io

import (
"errors"
"github.com/go-rat/utils/debug"
"os/exec"
"path/filepath"
"strings"
Expand Down Expand Up @@ -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 解压文件
Expand Down

0 comments on commit f910c53

Please sign in to comment.