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

Debian minor version wrongly identified #125

Open
ydirson opened this issue Jul 7, 2022 · 0 comments
Open

Debian minor version wrongly identified #125

ydirson opened this issue Jul 7, 2022 · 0 comments

Comments

@ydirson
Copy link

ydirson commented Jul 7, 2022

A Debian 11.2 is reported as 11.11:

$ cat /etc/debian_version 
11.2

$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

$ ./xe-linux-distribution 
os_distro="debian"
os_majorver="11"
os_minorver="11"
os_uname="5.10.0-11-amd64"
os_name="Debian GNU/Linux 11 (bullseye)"

The awk expression in identify_lsb assumes there is a dot in the lsb_release --short --release output, which is not the case here. It should likely conclude that minor="" instead, in this case.

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

No branches or pull requests

1 participant