Skip to content

Commit

Permalink
fix: add newline at the end of vmoptions file
Browse files Browse the repository at this point in the history
  • Loading branch information
yaohui-wyh committed Jun 10, 2022
1 parent 568fe7f commit ef634a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/ide/jetbrains/image/status/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,8 @@ func updateVMOptions(alias string, content string) string {
if len(userVMOptions) > 0 {
vmoptions = deduplicateVMOption(vmoptions, userVMOptions, filterFunc)
}
return strings.Join(vmoptions, "\n")
// vmoptions file should end with a newline
return strings.Join(vmoptions, "\n") + "\n"
}

/**
Expand Down

0 comments on commit ef634a5

Please sign in to comment.