Merge pull request #583 from vvoland/update-distro

install: Detect Ubuntu codename without /etc/lsb-release
This commit is contained in:
Sebastiaan van Stijn authored and GitHub committed 2026-10-13 19:06:39 +02:00
commit ada7a567e5
1 file changed
+4 -1
+4 -1
View File
@@ -507,7 +507,10 @@ do_install() {
case "$lsb_dist" in
ubuntu)
if command_exists lsb_release; then
if [ -r /etc/os-release ]; then
dist_version="$(. /etc/os-release && echo "$VERSION_CODENAME")"
fi
if [ -z "$dist_version" ] && command_exists lsb_release; then
dist_version="$(lsb_release --codename | cut -f2)"
fi
if [ -z "$dist_version" ] && [ -r /etc/lsb-release ]; then