Skip to content

Commit

Permalink
gets exact release version from /etc/debian_version
Browse files Browse the repository at this point in the history
  • Loading branch information
gurubert committed Jul 19, 2024
1 parent d642b75 commit c8ee2a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lsbrelease/agents/plugins/lsbrelease
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ if [ -r /etc/os-release ]; then
if echo $PRETTY_NAME | grep -q -i "leap 42"; then
echo -e "Release:\t"$(echo $VERSION_ID | sed -e s/42/14/)
else
echo -e "Release:\t$VERSION_ID"
if [ "$ID" = "debian" -a -r /etc/debian_version ]; then
echo -en "Release:\t"
cat /etc/debian_version
else
echo -e "Release:\t$VERSION_ID"
fi
fi
echo -e "Codename:\t$VERSION_CODENAME"
echo -e "Distributor ID:\t$ID"
Expand Down
Binary file removed lsbrelease/lsbrelease-5.7.1.mkp
Binary file not shown.
Binary file added lsbrelease/lsbrelease-5.8.0.mkp
Binary file not shown.

0 comments on commit c8ee2a2

Please sign in to comment.