build: fix trailing newline in version string

This commit is contained in:
Isaac Freund
2021-11-02 23:54:44 +01:00
parent d4aa64034c
commit 69d1453741
4 changed files with 7 additions and 4 deletions

View File

@ -63,7 +63,7 @@ pub fn main() anyerror!void {
}
if (result.boolFlag("-version")) {
try io.getStdOut().writeAll(build_options.version);
try io.getStdOut().writeAll(build_options.version ++ "\n");
os.exit(0);
}
if (result.argFlag("-log-level")) |level_str| {