Skip to content

Commit

Permalink
fixed zipper issue on Windows machines
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Przybyl committed Oct 1, 2024
1 parent 67fb491 commit b49c05f
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 b49c05f

Please sign in to comment.