Skip to content

Commit

Permalink
Fixed OS version querying on Linux (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
Agamenon-sama authored Dec 2, 2023
1 parent 10d87e8 commit 15cf072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux/os.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ OS::OS() {
// remove \" at begin and end of the substring result
_name = {line.begin() + 1, line.end() - 1};
}
if (utils::starts_with(line, "VERSION")) {
if (utils::starts_with(line, "VERSION=")) {
line = line.substr(line.find('=') + 1, line.length());
// remove \" at begin and end of the substring result
_version = {line.begin() + 1, line.end() - 1};
Expand Down

0 comments on commit 15cf072

Please sign in to comment.