Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed OS version querying on Linux #72

Merged
merged 1 commit into from
Dec 2, 2023
Merged

Conversation

Agamenon-sama
Copy link
Contributor

OS version querying on Linux works by reading the property that starts with VERSION in the file /etc/os-release. My Ubuntu system however contains the following in that file

VERSION_ID="23.04"
VERSION="23.04 (Lunar Lobster)"
VERSION_CODENAME=lunar

This causes the version number to be set to una which is the value of the last property that starts with VERSION minus the first and last character.

I also suggest applying a similar fix for all situations where we read from this file or a similar one to avoid future issues.

@lfreist lfreist self-requested a review December 2, 2023 16:58
@lfreist lfreist merged commit 15cf072 into lfreist:main Dec 2, 2023
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants