1
0
Fork 0
mirror of https://github.com/Luzifer/git-changerelease.git synced 2024-12-20 19:11:17 +00:00

fix collecting newlines at the bottom

This commit is contained in:
Knut Ahlers 2016-07-14 13:45:35 +02:00
parent b38ef6f764
commit e1be3ed9a1
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -167,7 +167,7 @@ func main() {
"OldLog": readChangelog(),
})
if err := ioutil.WriteFile(cfg.ChangelogFile, buf.Bytes(), 0644); err != nil {
if err := ioutil.WriteFile(cfg.ChangelogFile, bytes.TrimSpace(buf.Bytes()), 0644); err != nil {
log.Fatalf("Unable to write new changelog: %s", err)
}