Skip to content

Commit

Permalink
Keep final_newline
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Sep 26, 2023
1 parent 3f28c49 commit fa230e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/selfup/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ $ selfup --prefix='# selfup ' --list-targets .github/workflows/*.yml
}

if isDirty {
err := os.WriteFile(path, []byte(newBody), os.ModePerm)
err := os.WriteFile(path, []byte(newBody+"\n"), os.ModePerm)
if err != nil {
log.Fatalf("%+v", xerrors.Errorf("%s: %w", path, err))
}
Expand Down

0 comments on commit fa230e8

Please sign in to comment.