Skip to content

Commit

Permalink
Issue #424: extract: Use 'mode' from tarball instead of hardcoding it
Browse files Browse the repository at this point in the history
This is related to #424
  • Loading branch information
cfergeau authored and praveenkumar committed Sep 23, 2019
1 parent 5519ddd commit 41057dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/extract/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func Untar(tarball, targetDir string) error {
// if its a dir and it doesn't exist create it
case tar.TypeDir:
if _, err := os.Stat(path); err != nil {
if err := os.MkdirAll(path, 0750); err != nil {
if err := os.MkdirAll(path, header.FileInfo().Mode()); err != nil {
return err
}
}
Expand Down

0 comments on commit 41057dd

Please sign in to comment.