Skip to content

Commit

Permalink
fix zip paths on Windows. Closes #418
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 18, 2017
1 parent c31edc2 commit e386800
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/zip/zip.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ import (
)

var transform = archive.TransformFunc(func(r io.Reader, i os.FileInfo) (io.Reader, os.FileInfo) {
name := strings.Replace(i.Name(), "\\", "/", -1)

i = archive.Info{
Name: i.Name(),
Name: name,
Size: i.Size(),
Mode: i.Mode() | 0555,
Modified: i.ModTime(),
Expand Down

0 comments on commit e386800

Please sign in to comment.