Skip to content

Commit

Permalink
add back new line
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrisyhjiang committed Jun 28, 2024
1 parent b17fc51 commit 1384b42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pkg/cli/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func InitFromSamples(ctx context.Context, dir string, names []string) error {
}
return nil
}

func createFile(base string, h *tar.Header, tarReader *tar.Reader) error {
// Like os.Create, but with the same mode as the original file (so scripts are executable, etc.)
file, err := os.OpenFile(base, os.O_RDWR|os.O_CREATE|os.O_EXCL, h.FileInfo().Mode())
Expand Down

0 comments on commit 1384b42

Please sign in to comment.