Skip to content

Commit

Permalink
fix step download archive unexpected untar
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zhao <[email protected]>
  • Loading branch information
PetrusZ committed Jun 20, 2024
1 parent aa9a32c commit 1ab6cd8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (s *DownloadArchiveStep) Run(ctx context.Context) error {

destPath := path.Join(s.workspace, s.spec.DestDir, fileName)
objectKey := strings.TrimLeft(path.Join(s.spec.S3.Subfolder, s.spec.ObjectPath, fileName), "/")
if s.spec.UnTar {
if !s.spec.UnTar {
err = client.Download(s.spec.S3.Bucket, objectKey, destPath)
if err != nil {
if s.spec.IgnoreErr {
Expand Down

0 comments on commit 1ab6cd8

Please sign in to comment.