Skip to content

Commit

Permalink
fix compress error
Browse files Browse the repository at this point in the history
  • Loading branch information
NhanPT committed Jan 8, 2023
1 parent 554bbd6 commit 9a1c41a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ func (runner *JobRunner) Run() error {
if (runner.Job.UseZip && !strings.Contains(uploadPath, ".zip")) || stats.IsDir() {
uploadFile = createZipName(runner.Job.Name)
uploadPath = createTempPath(uploadFile)
fmt.Println("Creating zip file:", uploadFile)
err = CompressZip(runner.Job.Path, uploadFile)
err = CompressZip(runner.Job.Path, uploadPath)
if err != nil {
fmt.Println(err.Error())
return err
Expand Down

0 comments on commit 9a1c41a

Please sign in to comment.