Skip to content

Commit

Permalink
Merge pull request #275 from wttech/fix-zipper-issue
Browse files Browse the repository at this point in the history
fixed zipper issue on Windows machines
  • Loading branch information
krystian-panek-vmltech authored Oct 1, 2024
2 parents 67fb491 + b49c05f commit 8b1d8c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/content/zipper.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,14 @@ func zip(src string, dest string) error {
if err != nil {
return err
}
if header.Name == "." {
return nil
}
header.Name = pathx.Normalize(header.Name)

if info.IsDir() {
header.Name += "/"
header.Method = zipper.Store
} else {
header.Method = zipper.Deflate
}
Expand Down

0 comments on commit 8b1d8c2

Please sign in to comment.