Remove trailing newline in git sha

This commit is contained in:
Jarred Sumner
2022-08-10 15:29:53 -07:00
parent 099ad31deb
commit 218ab7f967

View File

@@ -328,7 +328,7 @@ pub fn build(b: *std.build.Builder) !void {
break :sha;
};
git_sha = std.heap.page_allocator.dupeZ(u8, result.stdout) catch unreachable;
git_sha = std.heap.page_allocator.dupeZ(u8, std.mem.trim(u8, result.stdout, "\n \t")) catch unreachable;
}
}